[Pharo-project] How to display an image from an external PNG/JPG file in a Morph?
Hi, Maybe a silly question, but is there an example of displaying an image from an external file in a Morph? A sample package/class source, or a wiki page would be fine. Or just a step-by-step description of the process. I am guessing that I have to create a Form first (that is, from the picture file), but could not find which method to use. Thanks for any suggestions. -- Dimitry Golubovsky Anywhere on the Web
Hi Dimitry, (ImageMorph withForm: (ImageReadWriter formFromFileNamed: 'pharoLogo.jpg')) openInWorld Cheers Alain Le 10/01/2011 05:33, Dimitry Golubovsky a écrit :
Hi,
Maybe a silly question, but is there an example of displaying an image from an external file in a Morph?
A sample package/class source, or a wiki page would be fine. Or just a step-by-step description of the process.
I am guessing that I have to create a Form first (that is, from the picture file), but could not find which method to use.
Thanks for any suggestions.
(ImageReadWriter formFromFileNamed: 'pharoLogo.jpg') asMorph openInWorld works also Le 10/01/2011 05:33, Dimitry Golubovsky a écrit :
Hi,
Maybe a silly question, but is there an example of displaying an image from an external file in a Morph?
A sample package/class source, or a wiki page would be fine. Or just a step-by-step description of the process.
I am guessing that I have to create a Form first (that is, from the picture file), but could not find which method to use.
Thanks for any suggestions.
participants (2)
-
Alain Plantec -
Dimitry Golubovsky