biSizeImage
biSizeImage is a field in the BITMAPINFOHEADER structure used by Windows bitmap graphics (DIBs and BMP files). It records the size, in bytes, of the image data—the pixel array that stores the color information for the bitmap. This includes the data for all scanlines and any per-scanline padding added to align rows to 4-byte boundaries.
How it is used: If the bitmap uses BI_RGB (uncompressed), biSizeImage may be set to zero, and
Notes: Some programs rely on biSizeImage to allocate buffers for the pixel data; in BMP files, this
Calculation example: for a 24-bit image with width w and height h, the per-row bytes is ceil(w