Results 1 to 2 of 2

Thread: how to get the rgb value from an hex color?

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    how to get the rgb value from an hex color?

    how do i do that?

  2. #2

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width