C# Algorithm to Tint a Color a Certain Percent

Posted by Josh Close on Stack Overflow See other posts from Stack Overflow or by Josh Close
Published on 2009-07-20T18:57:52Z Indexed on 2010/04/17 23:03 UTC
Read the original article Hit count: 684

I have a color and I want get a tint of that color by a certain percent. So 100% is the color itself, 90% is a slightly lighter color, etc. Basically, it's like adding 10% of opacity to the color, if the color is on a white background. I need to convert the color into a hex HTML color value, so I don't want transparency.

Is there an algorithm to get a tint of the System.Drawing.Color RGB value?

© Stack Overflow or respective owner

Related posts about c#

Related posts about algorithm