[Newbies] Loading windows bitmap?

Blake blake at kingdomrpg.com
Sun Jan 20 23:56:02 UTC 2008

I'm trying to load an external (windows) bitmap and set a sketchmorph (or  
imagemorph) to display. There's a lot of stuff to cycle through images in  
sketchmorph but I don't see how to load something. I've been trying:

i := ImageMorph new.
f := FileStream readOnlyFileNamed: 'C:\Windows\WinNT.BMP'.
i image: (Bitmap newFromStream: f).
World addMorph: i.

But no joy.

More information about the Beginners mailing list