how to convert a 16 bit Bitmap image to 24 bit Bitmap | developer.brewmp.com how to convert a 16 bit Bitmap image to 24 bit Bitmap | developer.brewmp.com

Developer

how to convert a 16 bit Bitmap image to 24 bit Bitmap

Forums:

I have a 16 bit bmp image, i want to convert it into 24 bit bmp image
can anyone please tell me how to do this

thanks in advance

codemaker

For example if you have RGB565, then convert it to RGB888. So convert
R - 5 to 8 bit
G - 6 to 8 bit
B - 5 to 8 bit.
If you pad MSBs with 0s for all missed bits, then you should get actual color, other wise, it will mess up the orginal.

For example if you have RGB565, then convert it to RGB888. So convert
R - 5 to 8 bit
G - 6 to 8 bit
B - 5 to 8 bit.
If you pad MSBs with 0s for all missed bits, then you should get actual color, other wise, it will mess up the orginal.