An example Analysisthe properties of the sample picture;OriginalThe red line is the end of the file header;The second red line is the end of the bitmap information header;Use Windows Paint to take the color of the point (2,2) pixels; the paint is
[From network] The format of the BMP file storage structure can be defined in wingdi. h file in windows. A bmp file consists of four parts: the bitmap file header, bitmap information header, palette, and image data, as shown in table 5-1. Table 5-
Bitmap Bitmapinfoheader and Bitmapfileheader:First look at bitmapinfoheader, write only a few majorBisize contains the size of the struct (including the color table)Biwidth and Biheight, respectively, are the length and width of the pictureBiplanes
Composition
A typical BMP image file consists of four parts:
1: The data structure of the Bitmap header file, which contains information such as the type and content of the BMP image file;
2: The bitmap information data structure, which contains the
Take C:/Windows/blue # 16.bmp as an example to briefly describe the structure of the BMP image. This is a typical 4-digit, 16-color BMP image. Each computer should have this image. Before instructions, install the ultraedit software to view the
A 256-color BMP file consists of four parts: BMP file header, BMP Information header, color table, and bitmap information matrix.
BMP file header structure;
Struct bitmapfileheader _{Short Type; // --------- file type, which must be 'bm'Int bfsize; /
bmp File Source stream length, although the JPG, PNG and other format image files, it is a bit of soil, but after all, BMP file format is relatively simple, easy to understand, as for the BMP many bitmap format can not blame Microsoft, mainly early
BMP is an image file format unrelated to hardware devices and is widely used. It uses a bit ing storage format. In addition to image depth options, it does not use any compression. Therefore, bblp files occupy a large amount of space. The image
There is no bmp image generation function in the GD library, so I wrote one myself. there is still a compression algorithm not written, but it is enough. For more information, see. Intimagebmp (resourceimage [, stringfilename [, int $ bit [,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.