/// <summary>
/// Calculates the opposite color
/// </summary>
/// <param name="clr">Given color</param>
/// <returns></returns>
public static Color CalculateOppositeColor(Color clr)
{
return Color.FromArgb(255 - clr.R, 255 - clr.G, 255 - clr.B);
}
Tuesday, January 09, 2007
A function to calculate the opposite color of given color
at
13:26
Subscribe to:
Post Comments (Atom)
3 comments:
Thanks
Thanks
yeh cheers for this!
Post a Comment