What happened to maskData?

Dar Scott dsc at swcp.com
Mon Jun 20 14:11:02 EDT 2005


On Jun 16, 2005, at 4:09 PM, Derek Bump wrote:

>  on mouseUp
>    set the alphaData of img 1 to (the imageData of img 2)
>  end mouseUp
>
> Revolution really didn't like this, and crashed every time I clicked 
> the button. :)  Does this work for you or anyone else?

This is not a good excuse for crashing, of course.

However, alphaData is one byte per pixel and image data is four bytes 
per pixel (Dummy and RGB).  The shape must match.

Dar

-- 
**********************************************
     DSC (Dar Scott Consulting & Dar's Lab)
     http://www.swcp.com/dsc/
     Programming and software
**********************************************



More information about the use-livecode mailing list