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.