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

📄 bmpapi.h

📁 VC6.0
💻 H
字号:
#ifndef BMPAPI_H
#define BMPAPI_H
#endif

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;

#ifdef __cplusplus
extern "C" 
{
#endif

void WINAPI fBmp_GetVersion(char* pVersion);
void WINAPI fBmp_WriteHead(Bmp_Info *bmp_info);
int  WINAPI fBmp_OpenBmp(LPCSTR 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(LPCSTR 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,LPCSTR 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,LPCSTR 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,LPCSTR text,int size,Bmp_Info *bmp_info);
void WINAPI fBmp_PrintTextB(int x,int y,LPCSTR 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,LPCSTR faxname);
int  WINAPI fBmp_ConvertFaxToBmp(LPCSTR faxname,LPCSTR bmpsname);
void WINAPI fBmp_GetErrMsg(char *buf);
int  WINAPI fBmp_GetErrCode(void);
void WINAPI fBmp_Getxy(int* x,int* y);
int  WINAPI fBmp_ConvertPrnToFax(LPCSTR prnfile,LPCSTR faxfile);
int  WINAPI fBmp_ConvertPrnToFax_Asyn(LPCSTR prnfile,LPCSTR faxfile);
int  WINAPI fBmp_ConvertTxtToFax(LPCSTR lptxtfilename,LPCSTR lpfaxfilename,int is_fine,int top,int left,int bottom,int right);
int  WINAPI fBmp_ConvertTxtToFax_Asyn(LPCSTR lptxtfilename,LPCSTR 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, LPCSTR faxname);
void WINAPI fBmp_SetScanLineByteNum(int nByteNum);
int  WINAPI fBmp_GetFileAllPage(LPCSTR filename);

int WINAPI fBmp_AddTxtToTif(LPCSTR szTifName, LPCSTR szFaxFrom, LPCSTR szFaxTo, LPCSTR szFaxSubject, LPCSTR szDataTime, LPCSTR szTargetFile, DWORD dwReserve);
int WINAPI fBmp_SetHeaderFormat(int nRow, int nFromX, int nFromY, LPCSTR szFrom, 
		int nSubX, int nSubY, LPCSTR szSubject,int nToX, int nToY, LPCSTR szTo,
		int nTimeX, int nTimeY, LPCSTR szTime);
#ifdef WIN32
int WINAPI fBmp_AddTxtToTif_Big(LPCSTR szTifName, LPCSTR szFaxFrom, LPCSTR szFaxTo, LPCSTR szFaxSubject, LPCSTR szDataTime, LPCSTR szTargetFile, DWORD dwReserve);
#endif
int WINAPI fBmp_UniteTif(LPCSTR szHeadTif, LPCSTR szSourceTif, LPCSTR szTargetTif, DWORD dwReserve);
int WINAPI fBmp_CutTifHeader(LPCSTR szSource, LPCSTR szTarget, int nHeight, int nPageNo, DWORD dwReserve);
int WINAPI fBmp_ValidateFaxFile(LPCSTR szFile);
#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

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