No matter the image is taken using the camera(try #1), or chosen from the CameraRoll(try #2) on a 3gs, the size is always capped to 384x512 (or 512x384).
local photo\_from\_camera = nil
local onCompleteHdlr = function(event)
photo\_from\_camera = event.target
print( "photo w,h,name = " .. photo\_from\_camera.width .. "," .. photo\_from\_camera.height )
end
--try #1
media.show( media.Camera, onCompleteHdlr )
--try #2
media.show( media.SavedPhotosAlbum, onCompleteHdlr )
end
(output)
photo\_from\_camera.width= 512
photo\_from\_camera.height= 384
I found that it’s only getting capped either using the “iphone simulator” or on the 3gs device. It works correctly on the iphone 4 simulator(We don’t have a iphone 4 device though).
This is really annoying…is there a way to get around this auto-capping limitation? We need full control over the raw image data selected or taken.
Thanks in advance.
[import]uid: 42041 topic_id: 10856 reply_id: 310856[/import]