I like it! Nice job.

Phil


On 1/27/20 8:21 AM, Bob Sneidar via use-livecode wrote:
Voila!

function pngIsTransparent pImageFile
    if not (there is a file pImageFile) then return "ERROR: Invalid file path!"
    set the filename of the templateImage to pImageFile
    put numtochar(0) into tZero
    return (tZero is in the alphaData of the templateImage) OR (tZero is in the 
maskData of the templateImage)
end pngIsTransparent

Another one for the masterLibrary

Bob S


On Jan 27, 2020, at 08:16 , Paul Dupuis via use-livecode 
<use-livecode@lists.runrev.com> wrote:

You should be able to use 'the templateImage' (see dictionary), and numToChar 
probably should be numToByte

As in:

on mouseUp
    answer file "Pick an image:"
    if it is empty then exit to top
    set the filename of the templateImage to it

    put numToByte(0) into tZero
    put (tZero is in the alphaData of the templateImage) OR (tZero is in the 
maskData of the templateImage)
end mouseUp

_______________________________________________
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


--
Phil Davis
503-307-4363


_______________________________________________
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

Reply via email to