Is it possible to save a snapshot to a file?

Oh, good idea, so something like this:

[lua]

snapshot:save( “mySnapshot.png”, system.DocumentsDirectory )

[/lua]

I’m adding as a feature request. Just keep in mind we’re focused on fixing bugs so people can ship apps with the current feature set.

Exactly what I am after - thanks for the help Walter! Will keep a lookout for it when you guys get time.

David M

Just thinking - this would also allow people to take “screenshots” of games that are larger than one screen (which I happen to be working on as well)

D

Also allows us to make proper iOS 7 wallpapers since the size is bigger than the actual size of the screen due to the shifting effect.

Yes, you can use display.capture. However, there are known issues with display.capture right now that we’re fixing:

http://docs.coronalabs.com/tachyon/guide/graphics/knownIssues.html

Thanks for the response Walter,

So just to clarify, will display.capture(), when the bugs are fixed, only save the visible (screen) portion of the snapshot, or will it save the entire snapshot whether it is onscreen or not?

Regards,

David M

The behavior should match what display.capture() would for other display objects, which if I remember correctly, is the onscreen portion.

Will there be any way to get the complete render to texture to a file? The particular application is for photo manipulation - at the moment there is no way to “export” edited images at anything above screen resolution. I was hoping to use the snapshot feature to put the original resolution images into and then save it out.

Thanks

D

Oh, good idea, so something like this:

[lua]

snapshot:save( “mySnapshot.png”, system.DocumentsDirectory )

[/lua]

I’m adding as a feature request. Just keep in mind we’re focused on fixing bugs so people can ship apps with the current feature set.

Exactly what I am after - thanks for the help Walter! Will keep a lookout for it when you guys get time.

David M

Just thinking - this would also allow people to take “screenshots” of games that are larger than one screen (which I happen to be working on as well)

D

Also allows us to make proper iOS 7 wallpapers since the size is bigger than the actual size of the screen due to the shifting effect.

+1

Daily Build 2013.2090 added the option to save/capture displayObjects with full resolution.

Just extra info. The new display.save / capture with Full Resolution is buggy in some android devices (in my case, in a Galaxy S1). It saves a black image.

So, be sure to test it before using it.

+1

Just found out that it is also buggy on iOS. I think depends of the size of the image that you try to save…

Daily Build 2013.2090 added the option to save/capture displayObjects with full resolution.

Just extra info. The new display.save / capture with Full Resolution is buggy in some android devices (in my case, in a Galaxy S1). It saves a black image.

So, be sure to test it before using it.

Just found out that it is also buggy on iOS. I think depends of the size of the image that you try to save…