Results 1 to 2 of 2

Thread: color to hex?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    color to hex?

    is there a function for that?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    I'm not sure there is as such. You could play around with the ToArgb method -

    VB Code:
    1. Dim oColour As System.Drawing.Color = System.Drawing.Color.Red
    2.      dim intColour as int32 = oColour.ToArgb * -1

    now you are just converting decimal to hex...

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