|
-
December 22nd, 2001, 03:50 PM
#1
work with 8bit bitmaps
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.
-
December 22nd, 2001, 08:21 PM
#2
Re: work with 8bit bitmaps
It's probably a 256 colour palette.
There must be a table somewhere of up to 256 RGB colours.
-
December 25th, 2001, 08:12 AM
#3
Re: work with 8bit bitmaps
Where do you take a pixel? Is it from a BMP file?
It is nice to be important, but more important to be nice.
It is nice to be important, but more important to be nice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|