Alpha Channel?

Troy Rollins troy at rpsystems.net
Thu Jun 10 21:24:50 EDT 2004


On Jun 10, 2004, at 8:28 PM, Michael J. Lew wrote:

> You CAN permanently re-size an image with only a little bit of 
> indirection.
>
> Make the image the size you want, then make a new image and type these 
> two lines in the message box:
>
> set the rect of image 2 to the rect of image 1
> set the imageData of image 2 to the imageData of image 1
>
> Now image 2 has its "natural" size set to its current size. Go to 
> another card in the stack and return and you will find image 1 has 
> reverted to its inital size but image 2 has stayed just how you want 
> it.
>
> (It works because the imageData is the pixels as displayed, not the 
> pixels at the original image size.)

Timely info.

Having just returned to working in Rev, this is one of the things I 
need to do in my current project. I didn't see it as a big problem, but 
expected to have to do a little experimentation. Now it's covered. 
Thanks.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net



More information about the use-livecode mailing list