📄 dibapi.h
字号:
//DIBAPI.h
#ifndef _INC_DIBAPI
#define _INC_DIBAPI
DECLARE_HANDLE(HDIB);
#define PALVERSION 0x300
#define IS_WIN30_DIB(lpbi) ((*(LPDWORD)(lpbi))==sizeof(BITMAPINFOHEADER))
#define RECTWIDTH(lpRect) ((lpRect)->right-(lpRect)->left)
#define RECTHEIGHT(lpRect) ((lpRect)->bottom-(lpRect)->top)
#define WIDTHBYTES(bits) (((bits)+31)/32*4)
#define DIB_HEADER_MARKER ((WORD)('M'<<8)|'B')
BOOL WINAPI PaintDIB(HDC,LPRECT,HDIB,LPRECT,CPalette* pPal);
BOOL WINAPI CreateDIBPalette(HDIB hDIB,CPalette* cPal);
LPSTR WINAPI FindDIBBits(LPSTR lpbi);
DWORD WINAPI DIBWidth(LPSTR lpDIB);
DWORD WINAPI DIBHeight(LPSTR lpDIB);
WORD WINAPI PaletteSize(LPSTR lpbi);
WORD WINAPI DIBNumColors(LPSTR lpbi);
HGLOBAL WINAPI CopyHandle(HGLOBAL h);
BOOL WINAPI SaveDIB(HDIB hDib,CFile& file);
HDIB WINAPI ReadDIBFile(CFile& file);
//在此处输入自己的函数声明
BOOL WINAPI AverFilter(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI REVERSE(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI SaltNoiseDIB(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI GradSharp(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI Move(LPSTR lpDIBBits,LONG lWidth,LONG lHeight,LONG DX,LONG DY);
BOOL WINAPI Horizontal(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI Vertical(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI Circumrotate(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI LinerTrans(LPSTR lpDIBBits,LONG lWidth,LONG lHeight,int X1,int Y1,int X2,int Y2);
HGLOBAL Zoom(LPSTR lpSrcDib, LPSTR lpSrcStartBits,long lWidth, long lHeight,
long lLineBytes, WORD palSize,long lDstWidth,long lDstLineBytes,long lDstHeight,
float fhorRatio,float fverRatio);
BOOL WINAPI MidFilter(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
unsigned char middnum(unsigned char* lpSrc1,unsigned char* lpSrc2,unsigned char* lpSrc3,unsigned char* lpSrc4,unsigned char* lpSrc5,unsigned char* lpSrc6,unsigned char* lpSrc7,unsigned char* lpSrc8,unsigned char* lpSrc);
BOOL WINAPI Sobel(LPSTR lpDIBBits, LONG lmageWidth, LONG lmageHeight);
BOOL WINAPI Roberts(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
//BOOL WINAPI Laplacian(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
BOOL WINAPI Laplacian(LPSTR lpDIBBits, LONG lmageWidth, LONG lmageHeight);
BOOL WINAPI Prewitt(LPSTR lpDIBBits, LONG lmageWidth, LONG lmageHeight);
BOOL Template(LPSTR lpDIBBits, LONG lmageWidth, LONG lmageHeight,
int nTempWidth, int nTempHeight,
int nTempCenX, int nTempCenY,
double* Tempdata, double TempCoef);
BOOL WINAPI Prewitt(LPSTR lpDIBBits,LONG lWidth,LONG lHeight);
#endif//!_INC_DIBAPI
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -