Display.capture() - saved picture, Where?

Hi,

I need to know to my projekt that where is the location of saved picture when i use the diplay.capture call. The folder path is exactly what i need. For example if i use this function the picture will saved to the Picture folder, but what happen if the user have an SD card? Thus the path is may change and I can’t reach the picture with the former situation’s path. Thanks!:slight_smile:

@Pocketjamgames
 
When I need to save an image to access it later I use display.capture() and display.save()
 
Example:
[lua]local capture = display.capture(displayObject) --capture an object
display.save(capture, “capture.jpg”); --saves to system.DocumentsDirectory by default [/lua]
 When I need to remove the saved image I do: 
[lua]local imageFullPath = system.pathForFile(“capture.jpg”, system.DocumentsDirectory)
local results, reason = os.remove(imageFullPath);
[/lua]

You can learn more about display.capture() and display.save() here:

http://docs.coronalabs.com/api/library/display/capture.html

http://docs.coronalabs.com/api/library/display/save.html

@Pocketjamgames
 
When I need to save an image to access it later I use display.capture() and display.save()
 
Example:
[lua]local capture = display.capture(displayObject) --capture an object
display.save(capture, “capture.jpg”); --saves to system.DocumentsDirectory by default [/lua]
 When I need to remove the saved image I do: 
[lua]local imageFullPath = system.pathForFile(“capture.jpg”, system.DocumentsDirectory)
local results, reason = os.remove(imageFullPath);
[/lua]

You can learn more about display.capture() and display.save() here:

http://docs.coronalabs.com/api/library/display/capture.html

http://docs.coronalabs.com/api/library/display/save.html