Discuss / Python / 信息

信息

Topic source

Super-String

#1 Created at ... [Delete] [Delete and Lock User]

struct BITMAPFILEHEADER {

    WORD bfType;  // 文件类型,必须为 'BM'

    DWORD bfSize;  // 文件大小,单位为字节

    WORD bfReserved1;  // 保留字段,必须为 0

    WORD bfReserved2;  // 保留字段,必须为 0

    DWORD bfOffBits;  // 从文件头到位图数据的偏移量,单位为字节

};

struct BITMAPINFOHEADER {

    DWORD biSize;  // 信息头大小,必须为 40

    LONG biWidth;  // 图像宽度,单位为像素

    LONG biHeight;  // 图像高度,单位为像素

    WORD biPlanes;  // 颜色平面数,必须为 1

    WORD biBitCount;  // 每个像素的位数,一般为 1、4、8、16、24 或 32

    DWORD biCompression;  // 压缩类型,一般为 0(不压缩)

    DWORD biSizeImage;  // 图像数据大小,单位为字节

    LONG biXPelsPerMeter;  // 水平分辨率,单位为像素/米

    LONG biYPelsPerMeter;  // 垂直分辨率,单位为像素/米

    DWORD biClrUsed;  // 颜色表中实际使用的颜色数,如果为 0,则使用所有颜色

    DWORD biClrImportant;  // 重要的颜色数,如果为 0,则表示所有颜色都重要

};


  • 1

Reply