Color value to RGB components

Discussion in 'Questions (Windows Mobile)' started by willisgt, Jan 2, 2009.

  1. willisgt

    willisgt Active Member Licensed User

    I know this has come up before, so I apologize for asking again (I searched the forum thoroughly before asking, though...)

    How could I resolve the R, G, and B values from, say, a pen.color value, or the value returned by GetPixel()?

  2. agraham

    agraham Expert Licensed User

    Array() = GetRGB(Color)

    Help -> MainHelp -> General

    You may know this, but others may not so I will remark on it here. On the device the number of colours is often limited and so may not resolve to what you expect. For example cWhite = RGB(255,255,255) when written to a Bitmap with SetPixel comes back with GetPixel as something like RGB(248, 246, 248) on my Axim X30. So if doing any colour comparisons this is something to be aware of. Desktop usually have a full colour gamut and don't suffer this effect.
  3. willisgt

    willisgt Active Member Licensed User

    Why is it always the simple / blatantly obvious stuff I get stuck on?


  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice