Location:
Search - bmp x y
Search list
Description: 鼠标x-y原理与绘图,
(1)CButton 显示ico/bmp,
(2)多个按钮共享MessageHandler
GetDlgItem,SetIcon,MoveTo/LineTo
-mouse x-y Principle and Mapping, (1) CButton show ico / bmp, (2) various buttons sharing MessageHandler GetDlgItem, SetIcon, MoveTo / LineTo
Platform: |
Size: 36060 |
Author: szh |
Hits:
Description: 位图装入、显示的c++类。
使用方法:
1 构造类的一个实例对象:
空实例 CDIB bmp()
用资源号构造 CDIB bmp(nResID)
用文件构造 CDIB bmp(\"PATH//Filename.bmp\")
2 若1步构造的是空实例对象,则须装入位图:
从文件装入 BOOL bmp.LoadFromFile(\"PATH//Filename.bmp\")
从资源装入 BOOL bmp.LoadFromResource(UINT nResID)
3 画位图图象
Draw(CDC* pDC,目标图左上角x&y坐标,长&宽,原图象左上角x&y坐标)
Draw(CDC* pDC,目标图左上角x&y坐标)
Draw(CDC* pDC)
Stretch(CDC* pDC, 目标图左上角x&y坐标,长&宽,原图像左上角x&y坐标,长&宽)
注: pDC的获取: CDC *pDC=GetDC() -bitmap loaded, shows the category c. Use : a structural example of a type of object : Air examples Bitmap bmp () with the resources, structure Bitmap bmp (nResID) document structure with CD IB bmp ( "PATH / / Filename.bmp") if a two-step structure of the object is empty examples , must be loaded bitmap : BOOL loaded from the file bmp.LoadFromFile ( "PATH / / Filenam e.bmp ") from the resource loading BOOL bmp.LoadFromResource (UIN T nResID) three paintings Bitmap Draw (CDC * pDC, objectives map upper left corner x
Platform: |
Size: 11183 |
Author: linus |
Hits:
Description: 输入x,y坐标,得到该店的RGB值.
输入x,y坐标,得到该店的RGB值.
Platform: |
Size: 10815 |
Author: 张棚 |
Hits:
Description: 当要隐藏信息时,在MATLAB的命令窗内输入命令: hide = myhide(carry,signal,x,y); carry 用你的原始载体文件名代替,signal 用你所要隐藏的文件名代替 carry 和 signal 都必须是 *.* 的形式(注意不能省略单引号) x,y 是选取隐藏信息的位置坐标,在(x,y)和(y,x)处 生成的伪装载体文件名为hide.bmp 注意myhide.m文件,载体文件,隐藏文件都要在当前目录(current Directory)下 当要提取信息时,在MATLAB命令窗内输入命令: behidden = myinhide(carry,x,y); carry 用你的伪装载体文件名代替,格式为 *.* (注意不要丢掉单引号) x,y 是选取隐藏信息的位置坐标,在(x,y)和(y,x)处,这必须和嵌入时所选位置一致。 提取出的信息文件名为behidden.bmp 同样,要注意behidden.m和伪装载体文件都要在当前目录(current Directory)下-when to hide information, in order MATLAB within a window orders : hide = myhide (carry, signal, x, y); Carry with you the original document name instead vector, signal used to hide your name in the paper and instead carry signal must be in the form of *.* ( not to single quotes omitted) x, y is to select the location of hidden information coordinates (x, y) and (y, x) The formation of camouflage vector document, entitled hide.bmp attention myhide.m documents, vector documents hidden all the documents in the current directory (current Directory) to retrieve information when, in order window MATLAB import order : behidden = myinhide (carry, x, y); carry using your camouflage vector file name instead, the format for *.* (take care not to lose a single quote) x, y election Hiding information
Platform: |
Size: 204479 |
Author: 韩飞 |
Hits:
Description: 指纹识别中的一个步骤分支点检测的实现,使用的是我个人编写的位图操作类,本位图操作类中的算法组,可以用于所有能够返回具有指针特性图像矩阵的文档操作类库。也就是说通用性很强。算法组还包括指纹识别算法,卷积函数。位图操作类包括的方法有
tmBmp();
tmBmp(const std::string & fname, BYTE clrBit = 8 ,DWORD imW = 256,DWORD imH = 256);
virtual ~tmBmp();
//复制构造函数
tmBmp(const tmBmp & bmp);
virtual const tmBmp & operator = (const tmBmp & init);
//打开位图
virtual bool openBmp(const std::string fname);
//另存位图
virtual bool saveBmp(const std::string fname);
//保存位图
virtual bool saveBmp();
//创建一幅位clrBit位,宽imw高imH的位图
virtual bool createBmp(const std::string fname,BYTE clrBit,DWORD imW,DWORD imH);
//从灰度数组,创建灰度图像
template
bool createGrayBmp(T * imArray,DWORD imW,DWORD imH);
//释放读入的图像
virtual void releaseBmp();
//获得图像的宽度
DWORD getWidth();
//获得图像的高度
DWORD getHeight();
//获得颜色位数
WORD getClrBit();
//显示位图信息
void showBmpInfo();
//获取调色板某一元素的值,存入RGBQuad
bool getRGBQuad(RGBQuad &, BYTE index);
//用RGBQuad更改调色板某一元素的值
bool setRGBQuad(RGBQuad &, BYTE index);
//重命名位图
void rename(const std::string fname = "新建位图.bmp");
//颜色反转
virtual void reverseColor();
//将一幅图片的像素区,装换为灰度值数组
template
bool tranToArray(T * pixelArray);
//如果是8位以内的图像本函数为
//在图像上(x,y)处画颜色索引为redPart的点
//对于16,24,32位的图像为
//在图像上(x,y)处画颜色为redPart+greenPart+bluePart的点
//x为行号,y为列号
bool putPixel(DWORD x,DWORD y,BYTE redPart=0,BYTE greenPart=0,BYTE bluePart=0);
Platform: |
Size: 15714 |
Author: tr0217 |
Hits:
Description: 二维图像的三维显示 详细信息 < OpenGL > 本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。本代码在Windows2000下编译通过。 -two-dimensional images of three-dimensional display detailed information <OpenGL> Image Processing himself to the needs and would like to achieve th ree-dimensional two-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documents OGL_MFCView.cpp achieve. OpenGL library initialization of the documents, the OnCreate, InitScene DrawScene function and the realization of the main initializatio
Platform: |
Size: 106496 |
Author: 李茜 |
Hits:
Description: 当要隐藏信息时,在MATLAB的命令窗内输入命令: hide = myhide(carry,signal,x,y); carry 用你的原始载体文件名代替,signal 用你所要隐藏的文件名代替 carry 和 signal 都必须是 *.* 的形式(注意不能省略单引号) x,y 是选取隐藏信息的位置坐标,在(x,y)和(y,x)处 生成的伪装载体文件名为hide.bmp 注意myhide.m文件,载体文件,隐藏文件都要在当前目录(current Directory)下 当要提取信息时,在MATLAB命令窗内输入命令: behidden = myinhide(carry,x,y); carry 用你的伪装载体文件名代替,格式为 *.* (注意不要丢掉单引号) x,y 是选取隐藏信息的位置坐标,在(x,y)和(y,x)处,这必须和嵌入时所选位置一致。 提取出的信息文件名为behidden.bmp 同样,要注意behidden.m和伪装载体文件都要在当前目录(current Directory)下-when to hide information, in order MATLAB within a window orders : hide = myhide (carry, signal, x, y); Carry with you the original document name instead vector, signal used to hide your name in the paper and instead carry signal must be in the form of*.* ( not to single quotes omitted) x, y is to select the location of hidden information coordinates (x, y) and (y, x) The formation of camouflage vector document, entitled hide.bmp attention myhide.m documents, vector documents hidden all the documents in the current directory (current Directory) to retrieve information when, in order window MATLAB import order : behidden = myinhide (carry, x, y); carry using your camouflage vector file name instead, the format for*.* (take care not to lose a single quote) x, y election Hiding information
Platform: |
Size: 203776 |
Author: 韩飞 |
Hits:
Description: 本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。 编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。 本代码在Windows2000下编译通过。-image processing to the needs and would like to achieve th ree-dimensional two-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documents OGL_MFCView.cpp achieve. OpenGL library initialization of the documents, the OnCreate, InitScene DrawScene function and the realization of the main initialization OpenGL runtime environment variables, 3D objects light, material, and as such introduced OpenG
Platform: |
Size: 106496 |
Author: 张立强 |
Hits:
Description: 鼠标x-y原理与绘图,
(1)CButton 显示ico/bmp,
(2)多个按钮共享MessageHandler
GetDlgItem,SetIcon,MoveTo/LineTo
-mouse x-y Principle and Mapping, (1) CButton show ico/bmp, (2) various buttons sharing MessageHandler GetDlgItem, SetIcon, MoveTo/LineTo
Platform: |
Size: 35840 |
Author: szh |
Hits:
Description: 为了实现图像处理的需要,实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。
编译源代码时,必须把opengl32.lib glu32.lib链到工程中。
可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。
本代码在Windows2000下编译通过。-image processing in order to achieve the necessary two-dimensional realization of the three-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documents OGL_MFCView.cpp achieve. OpenGL library initialization of the documents, the OnCreate, InitScene DrawScene function and the realization of the main initialization OpenGL runtime environment variables, 3D objects light, material, and as such introd
Platform: |
Size: 105472 |
Author: 周立 |
Hits:
Description: 位图装入、显示的c++类。
使用方法:
1 构造类的一个实例对象:
空实例 CDIB bmp()
用资源号构造 CDIB bmp(nResID)
用文件构造 CDIB bmp("PATH//Filename.bmp")
2 若1步构造的是空实例对象,则须装入位图:
从文件装入 BOOL bmp.LoadFromFile("PATH//Filename.bmp")
从资源装入 BOOL bmp.LoadFromResource(UINT nResID)
3 画位图图象
Draw(CDC* pDC,目标图左上角x&y坐标,长&宽,原图象左上角x&y坐标)
Draw(CDC* pDC,目标图左上角x&y坐标)
Draw(CDC* pDC)
Stretch(CDC* pDC, 目标图左上角x&y坐标,长&宽,原图像左上角x&y坐标,长&宽)
注: pDC的获取: CDC *pDC=GetDC() -bitmap loaded, shows the category c. Use : a structural example of a type of object : Air examples Bitmap bmp () with the resources, structure Bitmap bmp (nResID) document structure with CD IB bmp ( "PATH// Filename.bmp") if a two-step structure of the object is empty examples , must be loaded bitmap : BOOL loaded from the file bmp.LoadFromFile ( "PATH// Filenam e.bmp ") from the resource loading BOOL bmp.LoadFromResource (UIN T nResID) three paintings Bitmap Draw (CDC* pDC, objectives map upper left corner x
Platform: |
Size: 11264 |
Author: linus |
Hits:
Description: 输入x,y坐标,得到该店的RGB值.
输入x,y坐标,得到该店的RGB值.-Input x, y coordinates, the RGB value to be store. Input x, y coordinates, the RGB value to be store.
Platform: |
Size: 212992 |
Author: 张棚 |
Hits:
Description:
Platform: |
Size: 1963008 |
Author: 111111 |
Hits:
Description: 用windows画笔生成BMP文件f(x,y),图象宽为W,高为H,编写程序读取BMP文件,并生成新的图象g(x,y)。以BMP文件格式输出该图象。-Windows paintbrush used to generate BMP file f (x, y), image width W, height H, the preparation process to read BMP files, and generate new images g (x, y). BMP file format to the output of the image.
Platform: |
Size: 3245056 |
Author: 赵晓霞 |
Hits:
Description: 图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。-First, to obtain images bmp image files, and the other is from the clipboard. The code in the MFC library functions in the OpenGL calls to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness for the three-dimensional space, respectively, x, z, y coordinates.
Platform: |
Size: 106496 |
Author: guiyangyang |
Hits:
Description: 主要功能 : 1、画图,并有坐标尺
2、能够随意的放大缩小(编写两个函数,分别对应X,Y粥的缩放倍数)
3、一个记录集(或链表),记录当前画了多少图形,分别是什么图形,颜色,状态等
4、一个枚举类型,枚举所有本控件能画的图形(长方形,正方形,三角形 及自定义(即鼠标随意画)等)
5、能通过鼠标删除所画图形,并能移动图形,填充图形等
6、能够导出位图文件(bmp)
7、能够导出其他文件并能够导入显示-Main functions: 1, drawing and sitting ruler 2, is able to zoom in (the preparation of the two functions, corresponding to X, Y of the scaling multiplier porridge) 3, a record set (or list), drew a record number of current graphics, respectively, what is the graphics, color, state 4, an enumeration type, an enumeration of all the controls to draw graphics (rectangular, square, triangle and self-definition (that is, free to draw the mouse), etc.) 5, the mouse can delete painted graphics, and mobile graphics, graphics-filled 6, can export bitmap file (bmp) 7, can be exported into other documents and be able to show
Platform: |
Size: 192512 |
Author: 老夫子 |
Hits:
Description: 本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是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.
Platform: |
Size: 107520 |
Author: arechi |
Hits:
Description: 为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。-I need to image processing, image to realize the three-dimensional display, two-dimensional wrote this code, then hope and the interested readers. The image of a file, the second is BMP image is from the clipboard. This code in MFC OpenGL library function call to realize the three-dimensional display, two-dimensional image width, height and pixel luminance respectively, the three-dimensional space x, y, z coordinate. Program mainly initialization, drawing, resources and release, these functions in operation, CPP files OGL_MFCView. OpenGL library in this document initialization of the OnCreate, InitScene and DrawScene function, main initialization OpenGL environment variables, the operation of the 3d object, etc, due to the light qualitative introduced OpenGL library initialization document in many, I am not here to say, interested readers can consult the relevant documents. In DrawScene function calls GLDraw3DBMP global function complete drawing parts.
Platform: |
Size: 106496 |
Author: tom |
Hits:
Description: 读出BMP图片任何一点的RGB值,只要输入点的坐标(x,y)即可。-Read BMP images of any point in RGB values, as long as the input coordinates (x, y) can be.
Platform: |
Size: 1024 |
Author: 许许 |
Hits:
Description: .熟悉BMP图像的结构,编程实现BMP图像的阅读和显示。
编程实现彩色BMP图像的三个分量R、G、B的显示,Y、I、Q,H、S、I分量和X、Y、Z的显示。
获取图像任意一点的像素值(Familiar with the structure of BMP image, programming to realize the reading and display of BMP image.
The programming realizes the display of three components, R, G, B, of color BMP images, Y, I, Q, H, S, I components and X, Y, and displays.
Get the pixel value of any point of the image)
Platform: |
Size: 198656 |
Author: phoebephoebe
|
Hits: