Color value to RGB components

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()?


Gary
 

agraham

Expert
Licensed User
Longtime 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.
 

willisgt

Active Member
Licensed User
Why is it always the simple / blatantly obvious stuff I get stuck on?

*sigh*

Thanks
 
Top