Click to See Complete Forum and Search --> : work with 8bit bitmaps


drummor
December 22nd, 2001, 02:50 PM
Hi, i've got such a problem - can anybody explain (or probably give some example) how to work with 8bit pictures. I need to get some pixel and then to paint it in some point. The problem is that the pixel is 8bit, and graphic functions (like setpixel) need COLORREF (RGB???). I don't know how to convert 1 byte to RGB. May be i need to work with pallete, but i don't know how to do it.
Or is there some other way??? Anyway somebody please help me!!!
Thanks.

NMTop40
December 22nd, 2001, 07:21 PM
It's probably a 256 colour palette.

There must be a table somewhere of up to 256 RGB colours.

HTS
December 25th, 2001, 07:12 AM
Where do you take a pixel? Is it from a BMP file?


It is nice to be important, but more important to be nice.