How to convert a html color into a system.drawing.color

19-02-2007 09:30:00

Today i did get some practice using hex colors in my system.drawing.color's.

It's quite easy to use, if you really need to use System.Drawing.Color but using your personal color. To convert an html color into system.drawing.color use this code:

System.Drawing.ColorTranslator.FromHtml("#FF0000");



Kommentarer

Der er ingen kommentarer skrevet

Tilføj en kommentar

Navn
Email (Bliver ikke vist på siden)
Hjemmeside
Hvad er 1 + 3?
Kommentar
 
Copyright © 2005 - 2010 Daniel Nøhr. All rights reserved