Someone started a topic in the newbie section, and I chimed in because I was coincidentally working on using the camera API in my app.
http://developer.anscamobile.com/forum/2011/02/03/camera-support
The bottom line is that, based on the original sample code below from http://developer.anscamobile.com/reference/video, I am trying to take the image and save it as a JPG/PNG in order to upload it to my server.
[lua]local onComplete = function(event)
local photo = event.target
print( "photo w,h = " … photo.width … “,” … photo.height )
end
media.show( media.Camera, onComplete )[/lua]
If photo contains the image, how to I get to redisplay it at will? I tried **background = display.newImage ( photo )**but I got a “proxy” error. Also, I tried display.save to save it to a JPEG in the temporary directory, then using background=display.newImage… to retrieve it, and the image quality is so blocky and low-resolution.
Is the Camera API really usable, am I doing it wrong? Please help! [import]uid: 6084 topic_id: 6041 reply_id: 306041[/import]