Bitmap file header size

前端 未结 1 1692
温柔的废话
温柔的废话 2021-02-19 19:58

I\'m a newbie in programming bmp files and i checked this web site to learn about bmp header.. http://www.daubnet.com/en/file-format-bmp

it seems that the header of a bm

相关标签:
1条回答
  • 2021-02-19 20:27

    Lines in BMPs are padded out to multiples of 4 bytes.

    Without padding, each line is 3*10 = 30 bytes. With padding, each line is 32 bytes, so the image data is 320 bytes in size. Thus, the file size is 54+320 = 374 bytes.

    0 讨论(0)
提交回复
热议问题