display.save() saves a large transparent area

Hi,

When I use display.save() to save a display group I obtain an image file with a large transparent area around my main image content. How can I trim it?

Thank you.

Hi @yagizerkan,

You should use the “captureBounds()” function for this:

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

Take care,

Brent

Hi @yagizerkan,

You should use the “captureBounds()” function for this:

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

Take care,

Brent