One technique is to resize the image using the display… This limits your overall image size to the maximum display size though – but it does work.
This is a code excerpt, so you’ll have to work with the idea:
local function cameraDone(event)
print(" -- cameraDone(event) entered.")
if( event.target ~= nil ) then -- User took a photo...
t = event.target
local photot = display.newGroup()
print(" -- saving portarait mode")
t.width = mojoData.\_DeviceScreenCapWidth / 2 -- Adjust size
t.height = mojoData.\_DeviceScreenCapHeight / 2
photot:insert(t)
photot.x = 320
photot.y = 480
local baseDir = system.TemporaryDirectory
imageFilename = utils.getUniqueFilename()
imageFilename = imageFilename .. ".jpg"
display.save(photot, imageFilename, baseDir)
photot:removeSelf() -- Now get rid of it... (system puts it onscreen when group is created)
end
end
Good Luck! [import]uid: 79933 topic_id: 31173 reply_id: 124692[/import]