How do you invert a RGB component? XOR with 0xff? Add 0x7f and % 0xff?

Michal Seliga wrote:

> 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?
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to