如何在vc6.0下打开任意的bmp文件显示图像,并且能够进行颜色取反和二值化

2024-12-05 15:33:07
推荐回答(1个)
回答1:

lpBits=lpBitmap+sizeof(BITMAPFILEHEADER)+sizeof(BITMAPINFOHEADER);
if (lpBackup) delete lpBackup;
lpBackup=new BYTE[nLen];
memcpy(lpBackup,lpBitmap,nLen);
}