in article [EMAIL PROTECTED], Jefferson R. Lowrey at [EMAIL PROTECTED] wrote on 27/01/2003 18:33:
> It wasn't clear that your pictures were actually colored. The example I > received was black and white, with no color distinctions between each 'piece'. > Thus the desire to distinguish each piece with a different color. > >> A code example of how to read the value of a pixel would be great - >> basically is what I don't know how to code. > > If you look at http://www.macperl.com/depts/code/_kpreid/, you'll find a > number of sample programs and scripts written by Kevin Reid that make use of > the MacTooolbox to do image manipulation. Particularly the Dither Tool will > get you fairly close to where you probably want to be. Yes, I grabbed it, thanks for pointing it out. > Once you've got a pointer to the GrafPort Pixel Map, you can access the pixels > by index (as an array). Then you can get various color information and etc. I think I got the idea. For the big picture, I have also downloaded IM: Imaging With QuickDraw, which I should read before to monkeying with the ToolBox. Ciao, Ricardo