void CMyJPEG::SaveJPEG(HDIB hDIB, CString fileName)
{
// this assumes your data is stored as a 24-bit RGB DIB.
// if you have a 1,4,8,15/16 or 32 bit DIB, you'll have to
// do some work to get it into a 24-bit RGB state.
if (hDIB==NULL) {
AfxMessageBox("图像数据错!");
return;
}