Image Morphs
Bob Arning
arning at charm.net
Fri Jun 29 13:38:58 UTC 2001
Joshua,
ImageMorph responds to #image (and #form) with the Form containing all the bits in the image. Once you have that form, you can access the pixels with #colorAt:, e.g. If counting the number of each different color is important, you might look at Form>>tallyPixelValues.
Cheers,
Bob
On Fri, 29 Jun 2001 09:18:24 -0400 (EDT) "Joshua D. Boyd" <jdboyd at cs.millersville.edu> wrote:
>I've been poking around the systems browser, and I've figured out how to
>load a jpeg into an ImageMorph. But, how to I get access to that jpeg,
>pixel by pixel (like to built a histogram of the image, for instance), and
>write it back to disk? Or is the ImageMorph the wrong way to go about
>this?
More information about the Squeak-dev
mailing list
|