When I'm inverting a picture, I read the pixels with 'Pixels[][]', get the
individual colors by masking ('&') and shifting ('>>'), subtracting from FF,
and redrawing with Pixels[][] = RGB(,,,), while using 'int's for storage;
...but the resulting picture shows cludges and similar artifacts;
where's my mistake, are there special features of 'Pixels' or 'RGB'?
I face a similar problem when doing gaussian or uniform filtering of a
color picture - the resulting image has partially changed colors (where
they where originally strong) or even b/w parts (where colors of low
intensity where used).
Knut
--- Yuppie v2.11
---------------
* Origin: The Stoned Ghost (2:2437/120.5)
|