How to get color inverse like black(00 00 00) be white (FF FF FF)
red(FF 00 00) be (00 FF FF)

This will do a negative effect on a color vector. But a true invert needs to be done with either HSL color space or a ColorMatrix.

Color InvertAColor(Color ColorToInvert)
{
   return Color.FromArgb((byte)~ColorToInvert.R, (byte)~ColorToInvert.G, (byte)~ColorToInvert.B);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.