Saving transparent PNGs
Posted: Thu Jul 05, 2018 7:44 am
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:
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!
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)
Thank you!