How do I resize an ImageMorph?

karl karl.ramberg at chello.se
Sun Nov 27 15:15:14 UTC 2005


Marcus Pedersén wrote:

> 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.

Use a SketchMorph:
image := SketchMorph fromFile: fileName.
image openInWorld

SketchMorphs can be scaled with the halo etc.

karl

>------------------------------------------------------------------------
>
>
>  
>





More information about the Squeak-dev mailing list