Page 1 of 1

Exporting PNG images

Posted: Thu Sep 22, 2016 6:30 pm
by richmond62
This is a response to a current posting on the Use-List:

"I want to compose an image using a bunch of LC objects, then export a PNG, with an alpha channel containing a mask (ideally > 1 bit, but that part's not critical).
The documentation for export snapshot is not very clear. I've tried things like exporting a transparent group containing some objects; the PNG was just filled with black where there were no objects.
There is an option "with mask xx", but it appears that this is only for PBM format - and in any case I can't make it work.
Is there any way to do this?" [my bolding]
Pingu.livecode.zip
Stack to export PNG with transparent areas
(16.99 KiB) Downloaded 188 times
decor2.png
decor2.png (1.77 KiB) Viewed 2728 times
http://lessons.livecode.com/m/4071/l/68 ... ndow-shape

Re: Exporting PNG images

Posted: Thu Sep 22, 2016 6:43 pm
by richmond62
pongu.png
pongu.png (21.3 KiB) Viewed 2728 times
Pongu.livecode.zip
Stack with windowShape set to image
(2.3 KiB) Downloaded 217 times

Re: Exporting PNG images

Posted: Thu Sep 22, 2016 6:50 pm
by richmond62
The image "decor2.png" is exported from a group consisting of an image and a graphic object.
Groupies-630x420.jpg
Group everything!