相关http://bbs.csdn.net/topics/60230428
http://www.cnblogs.com/lidabo/p/3701882.html
http://zhidao.baidu.com/link?url=z2RD6QN2hd0NsZ7nxFfrA0IFwYxgtKFiAgfatUa3OpJ7_TjUe_vifslk-JIQNrGe5a4I-WyQ2_-jL5WXOoPquoxuWVB9dTBr40D1-5rO_Ky
程序如下:
/// /// 程序功能:1.实现读取bmp图像2.根据图像点的坐标输出该坐标下的rgb颜色值。
/// 系统Ubuntu 15.10,编程语言C,最新整理时间 2016.8.25。
/// 该程序是在实现纯高斯的C语言版本,遇到bmp图像的读取问题而来的
///
#include #include #include //自定义数据类型
typedef unsigned long DWORD;
typedef int BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
//位图信息头结构体定义
typedef struct tagBITMAPINFOHEADER
{
DWORD biSize;
long biWidth;
long biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
long biXPelsPerMeter;
long biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImport