Hi,
which morph may be the best for the following problem: I want to read a picture from file (bmp, gif) and then manipulating the picture pixel for pixel, i.E. for implementing special picture operations.
I've tried the ImageMorph with it's ColorForm inside, but it uses a colormap. But I would like to say "pixel x y set the value red 0.4 green 0.6 blue 0.0", regardless if this color is in any colormap or not (which is necessary for the colorAt: put: method of colorform).
Greetings
Hans
----------------------------------- Dipl.-Ing. Hans N. Beck Waldstr. 28 D-75045 Walzbachtal
Tel: 07203/922280 Mobil: 0177/5383233 -----------------------------------
On Wed, 20 Feb 2002, Hans N. Beck wrote:
Hi,
which morph may be the best for the following problem: I want to read a picture from file (bmp, gif) and then manipulating the picture pixel for pixel, i.E. for implementing special picture operations.
There is a receipe on the Squeak Swiki http://minnow.cc.gatech.edu/squeak/1917 Access a jpeg File Pixel by Pixel?
It works with forms. Check out as well
http://minnow.cc.gatech.edu/squeak/697 (Form)
and
http://minnow.cc.gatech.edu/squeak/2191 ThumbnailMorph
An ImageMorph has an instance variable 'image', which can be accessed with the method #form.
ImageMorph is a subclass of Morph and has 20 subclasses.
Regards Hannes Hirzel
squeak-dev@lists.squeakfoundation.org