Friday, February 10, 2006
VB.NET - Code Samples - Convert System.Drawing.Color to Hex String
VB.NET Convert System.Drawing.Color to Hex String Function
posted by Keith [2/10/2006 01:54:00 AM] - permalink - 3 comments
3 comment(s):
I think it isn't the correct solution, because in some cases the components (R or G or B) has only one digit and the backward conversion isn't possible.
Posted [9/26/2006 07:45:00 PM]
Can you solve that problem? Because I don't...
Posted [9/26/2006 07:47:00 PM]
I wrote that up before I knew about a class that does this for you.Look into ColorTranslator.ToHtml
http://msdn2.microsoft.com/en-us/library/system.drawing.colortranslator.aspx