Hi Blake,
Try this
k := SketchMorph fromFile: 'C:\Dokumente und Einstellungen\Baldsiefer\Eigene Dateien\Eigene Bilder\Beispiel.jpg'. k openInWorld.
HTH Frank
-------- Original Message -------- Subject: [Newbies] Loading windows bitmap? (21-Jan-2008 0:56) From: Blake blake@kingdomrpg.com To: frank.urbach@schmees.com
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
Edelstahlwerke Schmees GmbH Geschäftsleitung Clemens Schmees Sitz D-01796 Pirna Handelsregister Dresden HRB 54 E-Mail: es.la@schmees.com WEB: www.schmees.com
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidental and/or privileged information. If you are not intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is stictly forbidden.
beginners@lists.squeakfoundation.org