logo       

Loading windows bitmap?: msg#00097

lang.smalltalk.squeak.beginners

Subject: Loading windows bitmap?

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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise