Description: 中文注释,读写BMP图片文件的程序
包括打开、关闭文件、读写BMP数据矩阵和RGB、灰度转换,适用于数字图像处理领域的研究人员和入门人员-Chinese notes, read and write BMP picture files, including open, close the file, reading and writing BMP data matrix and the RGB, grayscale conversion, applicable to digital image processing research in the field of personnel and entry personnel Platform: |
Size: 9216 |
Author:李磊 |
Hits:
Description: 位图的存取在vc中的 因为所在的项目中我负责的模块是有关与位图的读写和存储的,所以看了一些资料后,并且成功在vc 下实现所需的功能后写下这篇读书报告。
对于位图,要想在vc中实现读取和存储,先必须了解BMP的文件格式。
BMP文件大体上分成四个部分:位图文件头,位图信息头,调色板,实际的位图数据。
位图文件头BITMAPFILEHEADER是一个结构,它的定义如下:
typedef struct tagBITMAPFILEHEADER{
WORD bfType
DWORD bfSize
WORD bfReserved1
WORD bfReserved2
DWORD bfOffBits
}BITMAPFILEHEADER实现-Bitmaps in vc access because of the projects where I am responsible for the module is concerned with reading and writing bitmap and storage, so read some information, and the success achieved in vc feature required to write This study reports. For bitmap, in order to achieve in the vc read and stored, first must understand the BMP file format. BMP files generally divided into four parts: the first bitmap file, BITMAPINFOHEADER, palette, the actual bitmap data. BITMAPFILEHEADER bitmap file header is a structure, it is defined as follows: typedef struct tagBITMAPFILEHEADER (WORD bfType DWORD bfSize WORD bfReserved1 WORD bfReserved2 DWORD bfOffBits ) BITMAPFILEHEADER to achieve Platform: |
Size: 187392 |
Author:lypdl |
Hits: