-1

I have made an application where in i have to load a btimap and on button event i have to change color depth of the bitmap, I have successfully made the changes for RGB, by manipulating the RGBQUAD of the bitmap. But i am stuck at this point where i want to convert the loaded color bitmap into monochrome on click of button ? How can this be done ? Can this be also done by manipulation of the RGBQUAD of the bitmap or in some other way. If with RGBQUAD what will be the COLOR VALUE of RGB in case of monochrome. Please also note that i am able to load the color image and then convert it to monochrome. Please take a note that this is a SDI MFC application. Thanks in advance.

4

1 に答える 1

0

多分AfxDrawGrayBitmapがあなたが望むものです。

于 2013-09-24T13:18:45.847 に答える