Results 1 to 3 of 3

Thread: *RESOLVED* converting colors to RGB values

  1. #1

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

    Question *RESOLVED* converting colors to RGB values

    I have a Drawing.Color variable. How can I get its RGB values?
    .ToArgb method returns one single number, I want to have it in red green blue. I tried ColorConvertor and ColorTranslator class, but I couldnt find a way
    Last edited by MrPolite; Oct 1st, 2002 at 12:44 PM.
    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
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    How about:

    Red = MyColor.R
    Green = MyColor.G
    Blue = MyColor.B

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Frans C
    How about:

    Red = MyColor.R
    Green = MyColor.G
    Blue = MyColor.B
    OMG! I didnt notice that!
    thanks
    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!!

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