TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: KNUT SCHUENEMANN
date: 1997-10-19 01:53:00
subject: ...Pixels[][] / ...RGB(,,,)

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.