PDA

Click to See Complete Forum and Search --> : how to get the rgb value from an hex color?


PT Exorcist
Nov 7th, 2002, 04:36 PM
how do i do that?

PT Exorcist
Nov 7th, 2002, 05:06 PM
ahh discovered..im smart :P

the only way i discovered was using the GetHex or something like that in System.Uri...but it only gives 1char..and i wanted in groups of 2...so the formula is the following:

decimalHexNumber1 * 16 + decimalHexNumber2

FF = 255
F = 15

15 * 16 + 15 = 255

:D