ColorFromString for Silverlight or .NET

added by jmccurdy
1/29/2010 9:45:13 AM

0 Kicks, 52 Views

Here is a simple static class, ColorFromString, that offers a single string extension method, ToColor, to create Color objects from various strings representations of color: •Named colors •ARGB colors as Hex (8 nibbles) •RGB colors as Hex (6 nibbles) •ARGB colors as comma or space separated decimal •RGB colors as comma or space separated decimal


0 comments