or: | w i | w := SystemWindow new. i := ImageMorph new image: ThemeIcons confirmIcon. w addMorph: i frame: (0@0 corner: 1@1). "frame is full window content" w openInWorld. to create an ImageMorph with a form: i := ImageMorph withForm: aForm. "aForm is my form created somwhere else" HTH "C. Hever" <py.ohlin@gmail.com> a écrit dans le message de news:CAGfYAYo4NxWetMnbGxbgVLjnRGVBv6Ej_iuXaw9j9sekCB3BwQ@mail.gmail.com... Monsieur Ducasse! I really appreciate your book collection. One question remains though: how do I change the picture in the ImageMorph? Can I give it a Form object? Also SystemWindow addMorph: i. raises #doesNotUnderstand TIA On Thu, Aug 11, 2011 at 3:32 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Aug 11, 2011, at 7:43 AM, C. Hever wrote:
Hello, all. I plan on visualizing fractals in Pharo sometime soon. However, there is a bit of a snag. I've figured out enough to write pixels to a form and save it as an image. However, that lacks the immediacy of being able to see it right in Pharo. Morphic is very confusing so what I'd like to know is how I can draw an image in a window, have all the normal window stuff like move and resize, maybe update it, then delete it when I'm done.
TIA
i := ImageMorph new image: ThemeIcons confirmIcon ; openInWorld
then SystemWindow ... addMorph: i.