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.
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to