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
Copy codeThe Code is as follows:/* File name: BMP test. c
Author: WanChuan XianSheng
Date: Oct 01,201 1
Description: Show all Info a bmp file has. including
FileHeader Info, InfoHeader Info and Data Part.
Reference: source code for C Language
Windows GDI providesTypedef struct tagBITMAPFILEHEADER {WORD bfType;DWORD bfSize;WORD bfReserved1;WORD bfReserved2;DWORD bfOffBits;} BITMAPFILEHEADER, * PBITMAPFILEHEADER;The BITMAPINFO structure of the BMP Information header is as follows:
Typedef
Windows GDI providesTypedef struct tagBITMAPFILEHEADER {WORD bfType;DWORD bfSize;WORD bfReserved1;WORD bfReserved2;DWORD bfOffBits;} BITMAPFILEHEADER, * PBITMAPFILEHEADER;The BITMAPINFO structure of the BMP information header is as follows:Typedef
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
There is no efficiency at all. It is completely a solution to the problem,Bitmap BMP = new Bitmap (320,240, pixelformat. format24bpprgb );
Bitmap BMP 1 = new Bitmap ("C: \ aa.bmp ");
For (INT I = 1; I {
For (Int J; j {
BMP. setpixel (J, I, BMP.
This article mainly describes how to intercept the computer desktop and save it as a BMP image.1. bmp image File compositionBMP is a standard image file format in the Windows operating system.BMP image files are made up of four parts:(1) Bitmap
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.