Hi
If You just want to scale a picture, just set the rect of sprite to your
desired size, no matter whether you want to enlarge or shrink.
regards, florian
Rainer Öhman schrieb:
>
> Hi List!
>
> I need to scale an image to 240 x 240. I can always use the crop() function if the
>image is bigger. But what steps are involved if the image is smaller?
>
> I can create an image object:
>
> myNewImage = image(240, 240, 16)
>
> and then use the copyPixels() function to 'pour 'the image into that object. But
>this distorts the image if it hasn't the same widht and height.
>
> Let's say I've got an image, 200 x 240 pixels. What I'm trying to do is
>
> 1. Resize the image to 240 x 280
> 2. Crop it to 240 x 240
> 3. Use the copyPixels() function to assign it to the new image object
> 4. Set the image property of a cast member to the image object
> 5. Handing this member to a sprite
>
> - Rainer
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]