reading a .bmp file in c++

后端 未结 3 629
予麋鹿
予麋鹿 2021-02-04 15:58

I\'m trying to load a bmp file for reusing it in opengl. I\'ve found some code via google on how to load a bmp file. I took this code and put in a class Bitmap in my project. Th

3条回答
  •  长发绾君心
    2021-02-04 16:30

    BITMAPINFOHEADER :: You need to read first the biSize in order to know how large the info header is, you cannot rely on sizeof().

    Check out this wiki article about the file format

提交回复
热议问题