How do I resize an ImageMorph?

Marcus Pedersén marcus.pedersen at comhem.se
Sun Nov 27 12:25:04 UTC 2005


Hi!
I have read an image from file but it shows up too large in my World.
 
My code:
image := BMPReadWriter formFromFileNamed: file.
image := image asMorph.

I have tried shrink: by: on the form (nothing happens) and displayScaledOn: on another form (Form new extent: 20 at 20 depth: 32) but that does not give all the colors. I have also tried a couple of other messages without any success.
So, how do I resize an ImageMorph?
Many thanks in advance!
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20051127/4dc59d93/attachment.htm


More information about the Squeak-dev mailing list