没有标准函数读。
需要根据BMP文件的结构定义,读出头部和每个颜色值。
struct header
{
unsigned short int bfType;
unsigned int bfSize;
unsigned short int bfReserved1;
unsigned short int bfReserved2;
unsigned int bfoffBits;
}__attribute__ ((packed));
struct tinfoheader
{
unsigned int biSize;
unsigned int biWidth;
unsigned int biHeight;
unsigned short int biPlanes;
unsigned short int biBitCount;
unsigned int biCompression;
unsigned int biSizeImage;
unsigned int biXPelsPerMeter;
unsigned int biYPelsPerMeter;
unsigned int biClrUsed;
unsigned int biClrImportant;
}__attribute__ ((packed));
可以调用系统消息处理函数
读它像素点的值是吗?