Text of an image

Trevor DeVore lists at mangomultimedia.com
Thu Sep 4 15:30:35 EDT 2008


On Sep 4, 2008, at 2:26 PM, Scott Rossi wrote:

> Perhaps one needs to get into the nitty gritty of *when* an object is
> treated a PNG by Rev, but regardless:
>
> 1) if you import a GIF, you can assign both its image/alpha data to  
> another
> image by referencing its text
>
> 2) if you create a native image object within Rev, you can assign  
> both its
> image/alpha data to another image by referencing its text

> ...
> But for
> practical purposes, the text property does indeed reference both
> image/alphadata.

This is true but there are some caveats.

The lockLoc of the second image must either be false OR the second  
image must be the exact same size as the first image. Otherwise the  
image/alphaData of the two images will not be the same.

Example: If the second image was twice the size of the first image  
(and had lockLoc set to true) and you assigned the text of the first  
image to the text of the second image then the imageData/alphaData  
would NOT be the same. This is because the imageData represents what  
is *visible* on the screen and the two images are not the same size.

What is most likely happening under the hood is that when you assign  
the text property of an image control Rev is creating the image/ 
alphaData based on the current size of the image control.

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com



More information about the use-livecode mailing list