C# .NET: Converter System.Drawing.Color para cor HTML

Aqui tem um exemplo de como converter de System.Drawing.Color para o formato de cor HTML (HEX ou nome de cor HTML) e vice-versa.

System.Drawing.Color c = System.Drawing.ColorTranslator.FromHtml("#F5F7F8");
String strHtmlColor = System.Drawing.ColorTranslator.ToHtml(c);

 

post original por Chris

Postado em s 5/11/2007 20:18:00 by Gh0stman

Permalink | Comments (0) | Post RSSRSS comment feed |

Categorias: C# | Dicas

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag





Live preview

janeiro 6. 2009 03:10