By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,404 Members | 980 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,404 IT Pros & Developers. It's quick & easy.

How to convert 8bit color image to 16 bit color one?

P: 1
16 bit - 565 (5 bits for the red,6 for green and 5 for blue).
Assume that the source bitmap was already loaded in in one buffer - bmpBuf with pixel format 332 (3 bits for red, 3 for green and 2 for blue). Dimensions are bW - width and bH - height. The format of the function is:
void convertBMP(unsigned char* bmpBuf, unsigned short* destination, int bW, int bH).
I suppose, I have to use bit operations!!!
Need help!!!!!
Mar 10 '07 #1
Share this Question
Share on Google+
1 Reply

P: 1,646
Hi. I am not familiar with this format. What file format is this?
I know of 24 bit files (3 x 8 bits) or 8 bit files (with a color map).
Mar 10 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.