drawdriver.h
来自「傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。」· C头文件 代码 · 共 67 行
H
67 行
#ifndef DrawDriver_H
#define DrawDriver_H
#pragma warning(disable : 4201 4214 4115)
#include <windows.h>
#pragma warning(default : 4201 4214 4115; disable : 4514 4244)
#include <crblib/inc.h>
#ifdef __cplusplus
extern "C" {
#endif
//--------------------------------------------------------------
#define DRIVER_MODE_555 (0)
#define DRIVER_MODE_565 (1)
typedef struct
{
HWND hWnd;
ubyte *Buffer;
uint Width;
uint Height;
uint Stride;
uint BytesPerPixel;
uint Mode;
uint R_shift;
uint G_shift;
uint B_shift;
uint R_mask;
uint G_mask;
uint B_mask;
uint R_width;
uint G_width;
uint B_width;
uint UserY;
} Driver_Window;
//--------------------------------------------------------------
bool DrawDriver_Startup_Closest(HANDLE hInstance, HWND hwnd, int SeekW, int SeekH );
bool DrawDriver_Startup_Dialog(HANDLE hInstance, HWND hwnd, int MinW, int MinH, int MaxW, int MaxH );
bool DrawDriver_Startup_WindowMode(HANDLE hInstance, HWND hwnd);
bool DrawDriver_Shutdown(void);
bool DrawDriver_UpdateWindow(void);
Driver_Window * DrawDriver_Lock(bool Clear);
bool DrawDriver_UnLock(void);
HWND DrawDriver_CreateStandardWindow(HANDLE instance,int w,int h);
//--------------------------------------------------------------
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?