bfSize - , :
- ( = biSize)
- ( = biSizeImage)
,
bfSize = biSize + biSizeImage
, biSize ( )
,
bfSize = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + biSizeImage
( BMP) BITMAPFILEHEADER 14 , BITMAPINFOHEADER 40 ,
bfSize = 54 + biSizeImage
, " " .
biSizeImage. , , * * . 24- BMP 3 (0-255 , , , ) - RGB. : , , - LittleEndianness . BMP 0 , 4 .
biSizeImage = (biWidth * sizeof(RGBTRIPLE) + padding) * abs(biHeight)
, :
- biSizeImage= BMP
- biSize= BMP
- bfsize = file size in bytes of the full BMP (including the header and image itself)
A detailed overview of the BMP structure can be found here.
source
share