Re: Export PNG with alpha channel/mask

2016-09-22 Thread Richmond

I don't quite understand why your transparent areas are exporting as Black:

http://forums.livecode.com/viewtopic.php?f=7=27984

Richmond.

On 22.09.2016 18:02, Ben Rubinstein wrote:
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?

TIA

Ben

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Export PNG with alpha channel/mask

2016-09-22 Thread Klaus major-k
Hi Ben,

> Am 22.09.2016 um 17:02 schrieb Ben Rubinstein :
> 
> 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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Export PNG with alpha channel/mask

2016-09-22 Thread Ben Rubinstein
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?

TIA

Ben

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode