June 27, 2015
5:20 p.m.
Here are two examples that contain elements of what you want: (ZnEasy getPng: 'http://pharo.org/web/files/pharo.png') asMorph openInWindow. (FileLocator workingDirectory filesMatching: '*.jpg') do: [ :each | (each withExtension: 'png') writeStreamDo: [ :out | each readStreamDo: [ :in | (PNGReadWriter on: out) nextPutImage: (JPEGReadWriter on: in) nextImage ] ] ] Seaside has file library objects that store images and other resources as methods.
On 27 Jun 2015, at 17:15, Laura Risani <laura.risani@gmail.com> wrote:
Hi all, How can i make a morph display an image from a file at my hd? How can i further "save" this image inside a class so to be ported via packages? Thanks, Laura