# include <stdio.h>
# include <stdlib.h>
# include <windows.h>
# include <string.h>
# include <math.h>
unsigned char *pBmpBuf;
int bmpWidth;
int bmpHeight;
RGBQUAD *pColorTable;
int biBitCount;
void saveBmp(char *bmpName, unsigned char *imgBuf, int width, int height, int biBitCount, RGBQUAD *pColorTable);//输出图像函数
void move();//平移函数
int main(void)
{
//FILE * fp = fopen("D:\\11.bmp", "rb");
char readPath[20];
printf("please enter the path for the image you will opening:");
printf("\n");
gets(readPath);
FILE * fp = fopen(readPath, "rb");
if ( NULL == fp )
{
printf("can't open this file!try again,please\n");
exit(-1);
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载