internal static class ColorExtensions
{
public static int ToArgb(this Color color)
{
int argb = color.A << 24;
argb += color.R << 16;
argb += color.G << 8;
argb += color.B;
return argb;
}
}
Friday, September 25, 2009
Color Extensions: ToArgb
Cool extension from http://www.jeff.wilcox.name
Labels:
C#,
Color extensions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment