Bitmap palette

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

If I have a Bitmap object, how can I locate and tweak its palette? e.g.
make things B&W, change colors etc?

I have looked around, but cannot seem to find the appropriate code. Many
thanks,

Hilton
 
Alex,

Pre-2.0, so that would be 1.1, or even 1.0 I guess. I basically would like
to target *any* Pocket PC with the CF installed. Having said that, if you
have code that is CF-specific, it would be a good place to start and I may
just need to limit the feature to the later CFs. I'm hoping for a non-2.0
solution.

FWIW: I could even limit the palette to a specific format, basically I just
need a pointer to the palette and I could figure out the rest. I looked in
OpenNETCF, but couldn't seem to find it, please let me know if I missed
something.

Thanks,

Hilton
 
Hilton,

Take a look at the OpenNETCF.Drawing.BitmapEx class. You can get the bitmap
bits with LockBits method and manipulate the bits directly. Codeproject.com
has got a few code samples that show how to do that.

HTH... Alex
 
Back
Top