Windows bitmap features

Source: Internet
Author: User

The location map in this document is an uncompressed location map without any device. dib.the location map in this category is generally a file extension. BMP

The number of bytes in the data area of these images must be a multiple of 4.

 

The number of color data bytes in each row must be a multiple of 4. The number of insufficient bytes must be filled with 0.

Each color point of a 24-Bit Bitmap is represented by three bytes, W indicates the width of the bitmap, and h indicates the height of the bitmap, in this case, each row has an offset byte offset = W * 3% 4 = 0? 0: (4-W * 3% 4) (there is another and or non-algorithm, which is not easy to understand ). therefore, the size of its bitmap data is size = (w * 3 + offset) * W;

 

The 32-Bit Bitmap is a multiple of 4 regardless of the width. Therefore, the offset is 0;

 

Each of the 8-Bit Bitmap color data represents an index of the color table. each row of the color table must be a multiple of 4 and must be filled with zero!

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.