⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bmpapi.h

📁 这是一个Demo程序
💻 H
字号:
#include "windows.h"

typedef struct {
	int handle;			// file handle
	int width;			// pixels per line
	int high;			// total lines
	int bytes;			// bytes per line
} Bmp_Info;

//a block of memory  to hold a image bar
typedef struct{
	char  *ptr;
	int   width;
	int   high;
}Img_Block;

void WINAPI fBmp_GetVersion(char* pVersion);
void WINAPI fBmp_WriteHead(Bmp_Info *bmp_info);
int  WINAPI fBmp_OpenBmp(char *filename,Bmp_Info *bmp_info);
int  WINAPI fBmp_CreatBlock(int width,int high,Img_Block *img_block);
void WINAPI fBmp_ClearBlock(Img_Block *img_block);
void WINAPI fBmp_FreeBlock(Img_Block *img_block);
int  WINAPI fBmp_ReadImgFromBmp(int offset,Img_Block *img_block,Bmp_Info *bmp_info);
int  WINAPI fBmp_WriteImgToBmp(int offset,Img_Block *img_block,Bmp_Info *bmp_info);
int  WINAPI fBmp_CreatBmp(char *filename,int width,int high,Bmp_Info *bmp_info);
void WINAPI fBmp_CloseBmp(Bmp_Info *bmp_info);
void WINAPI fBmp_PrintText(int x,int y,char *text,Img_Block *img_block);
void WINAPI fBmp_PutDot(int x,int y,Img_Block *img_block);
void WINAPI fBmp_EraseDot(int x,int y,Img_Block *img_block);
void WINAPI fBmp_PutLine(int x1,int y1,int x2,int y2,Img_Block *img_block);
void WINAPI fBmp_PutText(int x,int y,char *text,int size,Img_Block *img_block);
void WINAPI fBmp_PutDotB(int x,int y,Bmp_Info *bmp_info);
void WINAPI fBmp_EraseDotB(int x,int y,Bmp_Info *bmp_info);
void WINAPI fBmp_PutLineB(int x1,int y1,int x2,int y2,Bmp_Info *bmp_info);
void WINAPI fBmp_PutTextB(int x,int y,char *text,int size,Bmp_Info *bmp_info);
void WINAPI fBmp_PrintTextB(int x,int y,char *text,Bmp_Info *bmp_info);
void WINAPI fBmp_SetFaxConvertMode(int width,int high,int fax_size,int is_fine,int top,int left,int end);
int  WINAPI fBmp_ConvertBlockToFax(Img_Block *img_block,char *faxname);
int  WINAPI fBmp_ConvertFaxToBmp(char * faxname,char * bmpsname);
void WINAPI fBmp_GetErrMsg(char *buf);
int  WINAPI fBmp_GetErrCode(void);
void WINAPI fBmp_Getxy(int* x,int* y);
int  WINAPI fBmp_test(void);
int  WINAPI fBmp_ConvertPrnToFax(char *prnfile,char *faxfile);
int  WINAPI fBmp_ConvertPrnToFax_Asyn(char *prnfile,char *faxfile);
int  WINAPI fBmp_ConvertTxtToFax(char * lptxtfilename,char * lpfaxfilename,int is_fine,int top,int left,int bottom,int right);
int  WINAPI fBmp_ConvertTxtToFax_Asyn(char * lptxtfilename,char * lpfaxfilename,int is_fine,int top,int left,int bottom,int right);
BOOL WINAPI fBmp_GetPrnToFaxState(LPDWORD lpRetCode, LPDWORD lpProcessedPageNum);
BOOL WINAPI fBmp_GetTxtToFaxState(LPDWORD lpRetCode, LPDWORD lpProcessedPageNum);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -