M
Marcin P
When you build a 24-bit BMP file (without compression), its size should be:
width*height*bitperpixel+54bytes (54 bytes from file and bitmap headers).
When I create BMP files in MS Paint in "non-standard" dimensions
(different than 1024x768 or 512x384) sizes of files are bigger than they
sholud be.
When dimensions are standard everything is OK.
Example from Paint:
white picture->173x14->save as 24bit BMP...
and size written in bitmapfileheader is 7334 bytes... but it should be
173*14*3+54=7320. The difference is 14 bytes. Why?
When dimensions are 100x100 or 1024x768 - everything is OK.
width*height*bitperpixel+54bytes (54 bytes from file and bitmap headers).
When I create BMP files in MS Paint in "non-standard" dimensions
(different than 1024x768 or 512x384) sizes of files are bigger than they
sholud be.
When dimensions are standard everything is OK.
Example from Paint:
white picture->173x14->save as 24bit BMP...
and size written in bitmapfileheader is 7334 bytes... but it should be
173*14*3+54=7320. The difference is 14 bytes. Why?
When dimensions are 100x100 or 1024x768 - everything is OK.