核心代码.docVIP

  • 9
  • 0
  • 约5.37千字
  • 约 7页
  • 2017-10-29 发布于上海
  • 举报
核心代码

核心代码: void CImageProcessingView::OnSobel() { // TODO: Add your command handler code here //更改光标形状 BeginWaitCursor(); CImageProcessingDoc * pDoc = (CImageProcessingDoc *)this-GetDocument(); CDib * pDib = pDoc-m_pDibInit; LPBITMAPINFOHEADER lpBMIH=pDib-m_lpBMIH; // 判断是否是8-bpp位图 if (lpBMIH-biBitCount != 8) { // 提示用户 MessageBox(目前只支持256色位图的边缘提取!, 系统提示 , MB_ICONINFORMATION | MB_OK); // 返回 return; } // 循环控制变量 int y; int x; CSize sizeImage = pDib-GetDimensions(); int nWidth = sizeImage.cx ; int nHeight= sizeImage.cy ; int nSaveWidth = pDib-GetDibSaveDim().cx;

文档评论(0)

1亿VIP精品文档

相关文档