DrawPreView.h
上传用户:yatsl7111
上传日期:2007-01-08
资源大小:1433k
文件大小:1k
- #include "..publicgol_proc.h"
- #include "ConvoluteKernel.h"
- #ifndef _DRAWPREVIEW_H
- #define _DRAWPREVIEW_H
- #define PREV_WIDTH 192
- #define PREV_HEIGHT 192
- extern LPIMAGEPROCSTR lpProcInfo;
- static LPBYTE lpPreView=NULL,lpPreBack=NULL,lptemp=NULL;
- static int nPos_x=0,nPos_y=0,nStype=0;
- // 清理内存函数
- void ClearPreView();
- // 预览图像的亮度,对比度调节处理函数
- void _fnCOM_AdjustContrastPreView(int Brightness,int Contrast);
- // 重定义尺寸函数
- int _fnSPE_Output_Resize(int width,int height,LPBYTE lpDestData);
- // 绘制预览图像(缩比)函数
- void _fnCOM_DrawResizePrView(int nCtlID,LPDRAWITEMSTRUCT lpInfo);
- // 绘制预览图像,这里借用了临风的格式
- void _fnCOM_DrawPrView(int nCtlID,LPDRAWITEMSTRUCT lpInfo);
- // 预览窗口(缩比)绘制函数
- void _fnSPE_DrawResizePreView(LPDRAWITEMSTRUCT lpInfo,int x,int y,int nStye);
- // 预览窗口预览绘制函数
- void _fnSPE_DrawPreView(LPDRAWITEMSTRUCT lpInfo);
- void _fnCOM_AdjustEdgePreView(int nStrength,BOOL bAlgorith);
- void _fnCOM_AdjustConvolutePreView(int nKernel,int nStrength,KERNEL* kernel);
- void _fnCOM_MedianFilterPreView(int nPels,int nStype);
- void _fnCOM_HighFilterPreView(int nStrength,int nStype);
- void _fnCOM_SetPos_xy(int x,int y);;
- int _fnCOM_GetPosx();
- int _fnCOM_GetPosy();
- #endif //!_DRAWPREVIEW_H