user9559196
user9559196

Reputation: 157

Convert 16 bpp image to 8 bpp greyscale in c++

I have image source that generates images in 16 bpp. I have this info in unsigned char * buffer. I need to display image, which I cant using Labwindows directly in 16-bit. It doesnt support 16 bit. How to convert 16bpp in 8 bpp to show it Labwindows using NEWBITMAP();

I am a new to this conversion. Please help me write conversion in c++

Upvotes: 0

Views: 164

Answers (0)

Related Questions