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 bmp file is 54 bytes.
Using paint, i created a simple 10x10 image, and i saved it in 24 bits. so according to simple math, the file size should be 10*10*3 + 54 = 354 bytes.
but hex editor and file explorer returned a size of 374 bytes.
So i have a difference of 20 bytes, and i don't know why.
could you tell me why please?
thanks a lot!!
SizeOf
instead of calculating it yourself. (Also, it helps if you mention the programming language you're asking about; it makes it much easier to provide an answer.) – Persuader