Is it possible to generate a file path from display.newImage() or simply duplicating the display object itself.
I am working with media.capture and I don’t know how to get the path to the file without saving it first.
Cheers,
Phil
Is it possible to generate a file path from display.newImage() or simply duplicating the display object itself.
I am working with media.capture and I don’t know how to get the path to the file without saving it first.
Cheers,
Phil
By default media.capturePhoto() only returns a display.newImage object. You have to provide a table as a second parameter that gives the function a file name and path to save to. See:
http://docs.coronalabs.com/api/library/media/capturePhoto.html
media.capturePhoto( { listener=onComplete }, {baseDir=system.TemporaryDirectory, filename=“picture.jpg”, type=“image/jpeg” )
By default media.capturePhoto() only returns a display.newImage object. You have to provide a table as a second parameter that gives the function a file name and path to save to. See:
http://docs.coronalabs.com/api/library/media/capturePhoto.html
media.capturePhoto( { listener=onComplete }, {baseDir=system.TemporaryDirectory, filename=“picture.jpg”, type=“image/jpeg” )