📄 bmpapi.h
字号:
// 软件授权协议
//1、 杭州三汇信息工程有限公司(以下简称本公司)拥有"本软件及所有附属产品、文件和相关文档"(以下简称本产品)的完全版权。任何单位和个人在使用前须获得本公司的授权。
//2、 本公司授权符合以下全部条件的单位和个人免费使用本产品:
//A、 本产品与通过合法销售渠道购买的本公司硬件产品配合使用时;
//B、 不私自向第三方传播本产品和本产品的任何一部分。
//3、 除符合第2条以外的其他单位和个人需要使用本产品时,必须获得本公司的书面授权。
//4、 获得授权的单位和个人不得转让其获得的授权。
//5、 使用本产品,即表明完全理解本协议的所有条款并全部接受。
#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);
int WINAPI fBmp_GetFaxMode(LPSTR lpFileName);
int WINAPI fBmp_ConvertBlockToFaxEx(Img_Block *img_block,char *faxname);
int WINAPI fBmp_GetFileAllPage(char * filename);
int WINAPI fBmp_CutTif(char * szTifName, int nHeight);
int WINAPI fBmp_AddTxtToTif(char * szTifName, char *szFaxFrom, char *szFaxTo, char *szFaxSubject, char *szDataTime, char * szTargetFile, DWORD dwReserve);
int WINAPI fBmp_SetHeaderFormat(int nRow, int nFromX, int nFromY, char*szFrom,
int nSubX, int nSubY, char*szSubject,
int nToX, int nToY, char *szTo,
int nTimeX, int nTimeY, char *szTime);
int WINAPI fBmp_AddTxtToTif_Big(char * szTifName, char *szFaxFrom, char *szFaxTo, char *szFaxSubject, char *szDataTime, char * szTargetFile, DWORD dwReserve);
int WINAPI fBmp_UniteTif(char * szHeadTif, char * szSourceTif, char *szTargetTif, DWORD dwReserve);
int WINAPI fBmp_CutTifHeader(char * szSource, char * szTarget, int nHeight, int nPageNo, DWORD dwReserve);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -