【文件属性】:
文件名称:bmp图片信息获取 bmp.cpp
文件大小:1KB
文件格式:CPP
更新时间:2015-01-06 16:48:02
bmp C
bmp图片信息获取
#include
#include
void main()
{ FILE *in;
char inname[20],type[2];
int bits;
long width,height,offset,dsize,fsize,comp,rgbn;
printf ("please input the inBmP filename:");
scanf ("%s",inname);
if ((in=fopen(inname,"rb"))==NULL)
{ printf("cannot open infile\n");
exit(0);
}