what is the difference between bisizeimage , bisize and bfsize?

后端 未结 4 1201
失恋的感觉
失恋的感觉 2021-02-15 11:26

i\'m new to this field ,and i get confused between some terms!

bisizeimage, bisize and bfsize!

please i need a s

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-15 11:45

    bfSize = biSizeImage + sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER)
    bfSize = biSizeImage + 54               
    
    // since BITMAPFILEHEADER = 40 and BITMAPINFOHEADER = 14 
    
    biSizeImage = (biWidth * sizeof(RGBTRIPLE) + padding) * abs(biHeight) 
    

提交回复
热议问题