文件名称:DIB
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2.04mb
- 下载次数:
- 0次
- 提 供 者:
- l**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
1.首先添加菜单,ID为 IDM_GRAY
2.连接COMMAND 命令函数 void CViewDIB2View::OnOngray()
3.生成、调用类成员函数ChangeToGrayscale( 2, 0.3, 0.59, 0.11)
4.ChangeToGrayscale 调用HPALETTE hPal = ConvertToGrayscale(m_hDib, nMethod, fRedWeight, fGreenWeight, fBlueWeight)
5.调用 OnRealizePal((WPARAM)m_hWnd,0)
6.使用转口更新 pDoc->UpdateAllViews(NULL) 该函数把文档被修改的信息通知给每个视图,通常在用户已经通过视图改变文档之后,从视图类中调用此函数,来获取文档被修改的信息。 -1 First add the menu, ID is IDM_GRAY 2. Connect COMMAND command function void CViewDIB2View:: OnOngray () 3. Generation, calling a class member function ChangeToGrayscale (2, 0.3, 0.59, 0.11) 4.ChangeToGrayscale call HPALETTE hPal = ConvertToGrayscale ( m_hDib, nMethod, fRedWeight, fGreenWeight, fBlueWeight) 5. call OnRealizePal ((WPARAM) m_hWnd, 0) 6. with re-update pDoc-> UpdateAllViews (NULL) document is modified the function to notify the information to each view usually the user has changed after the document through a view from the view class to call this function to get the document to be modified information.
2.连接COMMAND 命令函数 void CViewDIB2View::OnOngray()
3.生成、调用类成员函数ChangeToGrayscale( 2, 0.3, 0.59, 0.11)
4.ChangeToGrayscale 调用HPALETTE hPal = ConvertToGrayscale(m_hDib, nMethod, fRedWeight, fGreenWeight, fBlueWeight)
5.调用 OnRealizePal((WPARAM)m_hWnd,0)
6.使用转口更新 pDoc->UpdateAllViews(NULL) 该函数把文档被修改的信息通知给每个视图,通常在用户已经通过视图改变文档之后,从视图类中调用此函数,来获取文档被修改的信息。 -1 First add the menu, ID is IDM_GRAY 2. Connect COMMAND command function void CViewDIB2View:: OnOngray () 3. Generation, calling a class member function ChangeToGrayscale (2, 0.3, 0.59, 0.11) 4.ChangeToGrayscale call HPALETTE hPal = ConvertToGrayscale ( m_hDib, nMethod, fRedWeight, fGreenWeight, fBlueWeight) 5. call OnRealizePal ((WPARAM) m_hWnd, 0) 6. with re-update pDoc-> UpdateAllViews (NULL) document is modified the function to notify the information to each view usually the user has changed after the document through a view from the view class to call this function to get the document to be modified information.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DIB\Debug\ChildFrm.obj
...\.....\CqOctree.obj
...\.....\MainFrm.obj
...\.....\ViewDIB2.exe
...\.....\StdAfx.obj
...\.....\ViewDIB2.obj
...\.....\Dib.obj
...\.....\ViewDIB2.res
...\.....\ViewDIB2Doc.obj
...\.....\ViewDIB2View.obj
...\.....\dibapi.obj
...\.....\ViewDIB2.pdb
...\.....\vc60.idb
...\.....\ViewDIB2.ilk
...\.....\vc60.pdb
...\.....\ViewDIB2.pch
...\res\Toolbar.bmp
...\...\ViewDIB2.ico
...\...\ViewDIB2.rc2
...\...\ViewDIB2Doc.ico
...\ChildFrm.h
...\ChildFrm.cpp
...\CqOctree.cpp
...\Dib.cpp
...\MainFrm.cpp
...\MainFrm.h
...\Dib.h
...\ReadMe.txt
...\Resource.h
...\StdAfx.cpp
...\StdAfx.h
...\ViewDIB2.clw
...\ViewDIB2.aps
...\ViewDIB2.cpp
...\ViewDIB2.dsp
...\ViewDIB2.h
...\ViewDIB2.opt
...\ViewDIB2.plg
...\ViewDIB2.rc
...\ViewDIB2Doc.cpp
...\ViewDIB2Doc.h
...\ViewDIB2.ncb
...\ViewDIB2View.h
...\ViewDIB2View.cpp
...\dibapi.h
...\dibapi.cpp
...\ViewDIB2.dsw
...\Debug
...\res
DIB
...\.....\CqOctree.obj
...\.....\MainFrm.obj
...\.....\ViewDIB2.exe
...\.....\StdAfx.obj
...\.....\ViewDIB2.obj
...\.....\Dib.obj
...\.....\ViewDIB2.res
...\.....\ViewDIB2Doc.obj
...\.....\ViewDIB2View.obj
...\.....\dibapi.obj
...\.....\ViewDIB2.pdb
...\.....\vc60.idb
...\.....\ViewDIB2.ilk
...\.....\vc60.pdb
...\.....\ViewDIB2.pch
...\res\Toolbar.bmp
...\...\ViewDIB2.ico
...\...\ViewDIB2.rc2
...\...\ViewDIB2Doc.ico
...\ChildFrm.h
...\ChildFrm.cpp
...\CqOctree.cpp
...\Dib.cpp
...\MainFrm.cpp
...\MainFrm.h
...\Dib.h
...\ReadMe.txt
...\Resource.h
...\StdAfx.cpp
...\StdAfx.h
...\ViewDIB2.clw
...\ViewDIB2.aps
...\ViewDIB2.cpp
...\ViewDIB2.dsp
...\ViewDIB2.h
...\ViewDIB2.opt
...\ViewDIB2.plg
...\ViewDIB2.rc
...\ViewDIB2Doc.cpp
...\ViewDIB2Doc.h
...\ViewDIB2.ncb
...\ViewDIB2View.h
...\ViewDIB2View.cpp
...\dibapi.h
...\dibapi.cpp
...\ViewDIB2.dsw
...\Debug
...\res
DIB