Hi Ronie,

On 22 Nov 2013, at 19:00, Ronie Salgado <ronies...@gmail.com> wrote:

> Hello,
> 
> I would like to know how I could load .png image into pharo, and being able 
> to access to their pixel data for manipulation or display it.
> 
> Greetings,
> Ronie Salgado

Here is an example:

'/Users/Sven/Desktop/test.jpg' asFileReference readStreamDo: [ :in | 
 (JPEGReadWriter on: in) nextImage asMorph openInWindow ].

Inspect the results of #nextImage or #asMorph to learn more, this code actually 
opens the image in a window in Pharo.

Regards,

Sven

Reply via email to