I'm trying to invert a 16 color indexed greyscale bitmap with imaging lingo. I thought this would be a no brainer.
I first tried copyPixels with #notcopy ink. This appears to work, but there seem to be subtle rounding errors. Also tried #reverse ink against black, with similar rounding errors.
I get accurate results by reversing each pixel with set/getPixel, but this just feels slow. I can probably live with it, but thought I'd ask if anyone has run into this.
Any other ideas out there?
When you made the blank image to process into, did you set it's bit depth to 16 color ?
If you did, then you might try upsampling the copy of the source image to 8 bit grayscale (with dither OFF) & then doing the copyPixels onto black w/#reverse within that colorspace & then downsampling the result back to 16 color grayscale.
* just ideas - all untested *
-Buzz
--
Cole
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
