Device is unacceptable (DIB)

zhaozj2021-02-16  71

The device has an unlocking bitmap is an abbreviation for Device-Independent Bitmap. It comes with color information. Therefore, the palette management is very easy. DIB also makes grayscale shadow control when printing easier. Any computer running Windows can handle DIB. It is usually saved in the disk file in the form of a BMP file or saved as a resource in the exe file and in the DLL file.

1, DIB structure in the BMP file

DIB is a standard Windows bitmap format, and a DIB is included in the BMP file. A BMP file is generally divided into the following four parts:

BITMAPINFOHEADER bfType = "BM" bfSizebfReserved1bfReserved2bfOffBits BITMAPINFOHEADER biSizebiWidthbiHeightbiPlanesbiBitCountbiCompressionbiSizeImagebiXPelsPerMeterbiYPelsPerMeterbiClrUsedbiClrImportant Palette monochrome DIB has two entries, color DIB 16 16 256 or fewer entries color DIB 256 entries, or not less true color palette for each DIB The length of the item is 4Bytes Dib Pixels pixels in each column sequence, each line of the number of bytes must be 4 integer times.

转载请注明原文地址:https://www.9cbs.com/read-16994.html

New Post(0)