资 源 简 介
位图的存取在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 b