opencv-hbitmap在内存中直接转jgp格式-bmp转jpg IplImage* CMainFrame::Bitmap2IplImage(HANDLE hBitmap) { BITMAP bmp; // 得到位图对象 int nPicSize; nPicSize = sizeof(BITMAP); GetObject(hBitmap, sizeof(BITMAP), &bmp); int depth,nChannels; if(bmp.bmBitsPixel == 1)//得到图像深度和通道数 { depth=IPL_DEPTH_1U; nChannels=1; } else { de
Read more