I don't think it's shifting by 128, but inverting. E.g. a=255-b (so black (0) becomes white (255))
-- -Richard M. Hartman 186,000 mi/sec: not just a good idea, it's the LAW! "Luc Le Blanc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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/
