[Pharo-project] How to display an image from an external PNG/JPG file in a Morph?

2011-01-09 Thread Dimitry Golubovsky
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

[Pharo-project] How to display an image from an external PNG/JPG file in a Morph?

2011-01-10 Thread Dimitry Golubovsky
Hi, Thanks Alain, this worked for me. Alain Plantec wrote: > (ImageReadWriter formFromFileNamed: 'pharoLogo.jpg') asMorph openInWorld > works also PS Before asking on the list I tried to google on the topic, nothing relevant returned. At least now googling for "pharo display png file" yields th

Re: [Pharo-project] How to display an image from an external PNG/JPG file in a Morph?

2011-01-09 Thread Alain Plantec
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/

Re: [Pharo-project] How to display an image from an external PNG/JPG file in a Morph?

2011-01-09 Thread Alain Plantec
(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 wou

Re: [Pharo-project] How to display an image from an external PNG/JPG file in a Morph?

2011-01-10 Thread Stéphane Ducasse
Hi dimitry Do not hesitate to ask questions, we love them because we are all learning from the. This is the trick :) Stef On Jan 10, 2011, at 11:36 AM, Dimitry Golubovsky wrote: > Hi, > > Thanks Alain, this worked for me. > > Alain Plantec wrote: > >> (ImageReadWriter formFromFileNamed: 'ph