does this PNG have transparency?

J. Landman Gay jacque at hyperactivesw.com
Sat Jan 25 17:56:28 EST 2020


I think that's pretty clever.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 24, 2020 4:37:20 PM Phil Davis via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> Maybe this? It seems to work in my simple testing. Am I missing something?
>
> on mouseUp
>     answer file "Pick an image:"
>     if it is empty then exit to top
>     set the filename of img "my test" to it
>
>     put numtochar(0) into tZero
>     put (tZero is in the alphaData of img "my test") OR (tZero is in
> the maskData of img "my test")
> end mouseUp
>
> Phil
>
>
> On 1/24/20 1:48 PM, Phil Davis via use-livecode wrote:
>> I usually make things harder than they need to be, so I'm asking: Is
>> there a simple way my LC code can determine if a PNG image is
>> completely opaque or not?
>>
>> Thanks -
>> Phil
>>
>
> --
> Phil Davis
> 503-307-4363
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode







More information about the use-livecode mailing list