Export PNG with alpha channel/mask

Klaus major-k klaus at major-k.de
Thu Sep 22 11:18:43 EDT 2016


Hi Ben,

> Am 22.09.2016 um 17:02 schrieb Ben Rubinstein <benr_mc at cogapp.com>:
> 
> 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?

yes, but you need to group all your objects first, then use something like this:
...
export snapshot from rect (the rect of grp 1) of grp 1 to img 1 as PNG
...

> TIA
> 
> Ben

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list