How to display an image from an external PNG/JPG file in a Morph?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to display an image from an external PNG/JPG file in a Morph?

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 file), but could not find which method to use.

Thanks for any suggestions.

--
Dimitry Golubovsky

Anywhere on the Web

Reply | Threaded
Open this post in threaded view
|

Re: How to display an image from an external PNG/JPG file in a Morph?

Alain Plantec-4
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.
>


Reply | Threaded
Open this post in threaded view
|

Re: How to display an image from an external PNG/JPG file in a Morph?

Alain Plantec-4
In reply to this post by Dimitry Golubovsky
(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.
>