[Newbies] Loading windows bitmap?

Frank Urbach frank.urbach at schmees.com
Mon Jan 21 06:55:01 UTC 2008


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 at kingdomrpg.com>
To:      frank.urbach at 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 at 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 at 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.




More information about the Beginners mailing list