Alpha Channel?

Graham Samuel graham.samuel at wanadoo.fr
Fri Jun 11 16:43:52 EDT 2004


On Fri, 11 Jun 2004 10:28:36 +1000, "Michael J. Lew" 
<michaell at unimelb.edu.au> 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.)
>
>Hope that helps.

Sure does! This has gone straight into the scrapbook. Thanks very much Michael.

Graham


---------------------------------------------------
Graham Samuel / The Living Fossil Co. / UK & France  




More information about the use-livecode mailing list