hi, there...i doing & rushing my final year project...i need to know how to convert rgb image to grayscale image in c++ MFC...below is my code...but..it can't work...why leh...tis code is in a button called Normalization...after the image display the image will be change to grayscale after i click the Normalization button...the load & display image i already done...so...it just the convert color haven't fix...so...can you help me to modify my code for grayscale...thanks a lot for helping me & replying..hope hear from you soon...if can't see my codes below..then..pls download the zip file i sent...tis zip file is my c++ MFC program...thanks...
void CFingerprintSystem_FASSDlg::OnNormalization()
{
// TODO: Add your control notification handler code here
typedef struct tagBITMAP
{
LONG bmType;
LONG bmWidth;
LONG bmHeight;
LONG bmWidthBytes;
WORD bmPlanes;
WORD bmBitsPixel;
LPVOID bmBits;
}
BITMAP, *PBITMAP;