我使用Rhodes 3.3.3爲iOS和Android開發。我的應用使用相機,我需要調整圖片大小。我用下面的命令羅德來調整圖片大小:用Rhomobile調整iOS圖像尺寸生成旋轉圖片
settings = {:enable_editing => false, :desired_width => 800, :desired_height => 800}
Camera::take_picture(url_for(:action => :camera_callback_new), settings)
文檔:http://docs.rhomobile.com/rhodes/device-caps#camera
返回的畫面調整。但是,如果以縱向模式拍攝,則會旋轉90度,如果以橫向模式拍攝,則會旋轉180度。我的問題
視覺解釋:https://groups.google.com/forum/?fromgroups#!topic/rhomobile/W0b46OllwRw
相機羅德源代碼如下鏈接。到目前爲止,我還沒有弄清楚問題出在哪裏。如果我沒有指定調整大小,圖片不會旋轉。到目前爲止,Rhodes的支持已經忽略了我的請求。
https://github.com/rhomobile/rhodes/blob/master/platform/iphone/Classes/Camera/PickImageDelegate.m
感謝,
尼克,
我有,但我的信息已被忽略。但是,我確實解決了一些試驗和錯誤的問題:https://github.com/rhomobile/rhodes/pull/81 – user2666194 2012-08-15 09:30:46