Retrieve alphaData From Image In Variable?

Scott Rossi scott at tactilemedia.com
Wed Jul 11 04:25:55 EDT 2007


Recently, Chipp Walters wrote:

>> Does anyone know if it is possible to access or retrieve the alphaData from
>> an 
>> image which has been exported to a variable?  I'm wondering if it's possible
>> to grab this data without writing the image out to a stack or external file.

> I'm not sure exactly what you are asking. Can you provide an example,
> or explain in more detail?

Sure.  If you have an image on a card, you can script

   put the alphaData of img myCoolImg into tData

But can you do this with a snapshot image that has been exported to a
variable (ie export snapshot to coolVar as PNG)?

Let me know if this isn't clear.

Best Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design





More information about the use-livecode mailing list