i would convert color to rgb, invert all components and find nearest color in palette corresponding to this

Luc Le Blanc wrote:
I wrote earlier:

Given a color index or RGB color value, how can I find the
inverted color I would get if I used an API like WinInvertPixel
on a pixel of the said color?


I tried shifting the color index by half the number of available colors but 
that does not exactly correspond to the inverted color (ex. 255/black becomes 
127 or ... brownish green).

So, how do APIs like WinInvertPixel do that? Ben would know...


Luc Le Blanc

--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to