does this PNG have transparency?

Bob Sneidar bobsneidar at
Mon Jan 27 10:53:17 EST 2020


Is img "my test" an existing image, or does setting the filename of img "my test" create the image on the fly? I'm trying to turn this into a function that returns true or false. 

Bob S

> On Jan 24, 2020, at 14:35 , Phil Davis via use-livecode <use-livecode at> 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

More information about the use-livecode mailing list