文件名称:ThreeDBMP
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:104.53kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和 DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。
编译源代码时,必须把opengl32.lib glu32.lib链到工程中。
可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。
本代码在Windows2000下编译通过。-I need to in order to image processing and would like to achieve the two-dimensional images of three-dimensional display, so to write this code, and hope that readers who are interested in this share. Bmp image to obtain one image file, two are from the clipboard. The MFC code to call OpenGL library functions to achieve the two-dimensional images of three-dimensional display, the image width, height, and pixel brightness were three-dimensional space, x, z, y coordinates. Main initialization procedure, mapping, resource release and operation of some of these features implemented in the OGL_MFCView.cpp file.
编译源代码时,必须把opengl32.lib glu32.lib链到工程中。
可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。
本代码在Windows2000下编译通过。-I need to in order to image processing and would like to achieve the two-dimensional images of three-dimensional display, so to write this code, and hope that readers who are interested in this share. Bmp image to obtain one image file, two are from the clipboard. The MFC code to call OpenGL library functions to achieve the two-dimensional images of three-dimensional display, the image width, height, and pixel brightness were three-dimensional space, x, z, y coordinates. Main initialization procedure, mapping, resource release and operation of some of these features implemented in the OGL_MFCView.cpp file.
相关搜索: 图像处理
opengl bmp
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ThreeDBMP/Bmpfile.cpp
ThreeDBMP/Bmpfile.h
ThreeDBMP/MainFrm.cpp
ThreeDBMP/MainFrm.h
ThreeDBMP/OGL_MFC.clw
ThreeDBMP/OGL_MFC.cpp
ThreeDBMP/OGL_MFC.dsp
ThreeDBMP/OGL_MFC.dsw
ThreeDBMP/OGL_MFC.h
ThreeDBMP/OGL_MFC.opt
ThreeDBMP/OGL_MFC.plg
ThreeDBMP/OGL_MFC.rc
ThreeDBMP/OGL_MFCDoc.cpp
ThreeDBMP/OGL_MFCDoc.h
ThreeDBMP/OGL_MFCView.cpp
ThreeDBMP/OGL_MFCView.h
ThreeDBMP/ReadMe.txt
ThreeDBMP/res/OGL_MFC.ico
ThreeDBMP/res/OGL_MFC.rc2
ThreeDBMP/res/OGL_MFCDoc.ico
ThreeDBMP/res/Toolbar.bmp
ThreeDBMP/res/『源码天空』.url
ThreeDBMP/res/使用说明.txt
ThreeDBMP/res/免费『商业源码』.url
ThreeDBMP/resource.h
ThreeDBMP/SelectColorDlg.cpp
ThreeDBMP/SelectColorDlg.h
ThreeDBMP/StdAfx.cpp
ThreeDBMP/StdAfx.h
ThreeDBMP/ThreeDBMP.exe
ThreeDBMP/UrlLink.cpp
ThreeDBMP/UrlLink.h
ThreeDBMP/res
ThreeDBMP
ThreeDBMP/Bmpfile.h
ThreeDBMP/MainFrm.cpp
ThreeDBMP/MainFrm.h
ThreeDBMP/OGL_MFC.clw
ThreeDBMP/OGL_MFC.cpp
ThreeDBMP/OGL_MFC.dsp
ThreeDBMP/OGL_MFC.dsw
ThreeDBMP/OGL_MFC.h
ThreeDBMP/OGL_MFC.opt
ThreeDBMP/OGL_MFC.plg
ThreeDBMP/OGL_MFC.rc
ThreeDBMP/OGL_MFCDoc.cpp
ThreeDBMP/OGL_MFCDoc.h
ThreeDBMP/OGL_MFCView.cpp
ThreeDBMP/OGL_MFCView.h
ThreeDBMP/ReadMe.txt
ThreeDBMP/res/OGL_MFC.ico
ThreeDBMP/res/OGL_MFC.rc2
ThreeDBMP/res/OGL_MFCDoc.ico
ThreeDBMP/res/Toolbar.bmp
ThreeDBMP/res/『源码天空』.url
ThreeDBMP/res/使用说明.txt
ThreeDBMP/res/免费『商业源码』.url
ThreeDBMP/resource.h
ThreeDBMP/SelectColorDlg.cpp
ThreeDBMP/SelectColorDlg.h
ThreeDBMP/StdAfx.cpp
ThreeDBMP/StdAfx.h
ThreeDBMP/ThreeDBMP.exe
ThreeDBMP/UrlLink.cpp
ThreeDBMP/UrlLink.h
ThreeDBMP/res
ThreeDBMP
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.