Page 1 of 1

Saving transparent PNGs

Posted: Thu Jul 05, 2018 7:44 am
by Tassilo
Dear Lovers.
I am looking for a way to save the results of my app Pixel-Me ( https://store.steampowered.com/app/875460/PixelMe/ ) as transparent PNGs. I currently do the following to save images:

Code: Select all

savedata = canvas:newImageData( 1, 1, 2+offsetx, 2+offsety, 64, 64 )
savedata:encode("png",filename)
From what I have seen, captureScreenshot has been changed in 11, having lost its savealpha boolean. Any way to embed alpha information to encode? Anything to keep in mind for the setup of the canvas? How about using a shader?

Thank you!

Re: Saving transparent PNGs

Posted: Thu Jul 05, 2018 8:05 am
by zorg
did you try the new function out already? are you certain it has lost the ability to save alpha values, and not the ability to save -without- alpha information?