forked from systoolz/wocarlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wocarlib.h
78 lines (71 loc) · 2 KB
/
wocarlib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef __WOCARLIB_H
#define __WOCARLIB_H
#include <windows.h>
#include "ocrdll.h"
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push, 1)
typedef struct {
HINSTANCE hLibrary;
ADDDIBPROC AddDIB;
ADDIMAGEPROC AddImage;
CREATEMULTIPLEIMGPROC CreateMultipleImg;
DIBTOIMGPROC DIBToIMG;
DELIMAGEPROC DelImage;
DESKEWIMGPROC DeskewImg;
ERASEBLACKBORDERSIMGPROC EraseBlackBordersImg;
EXTRACTIMGAREAPROC ExtractImgArea;
FREEIMGPROC FreeImg;
FREEMULTIPLEIMGPROC FreeMultipleImg;
GETIMAGEPROC GetImage;
GETIMGBITMAPPROC GetImgBitmap;
GETIMGBITMAPINFOPROC GetImgBitmapInfo;
GETIMGBITMAPSIZEPROC GetImgBitmapSize;
GETIMGRESPROC GetImgRes;
GETIMGSIZEPROC GetImgSize;
GETNBIMAGESPROC GetNbImages;
HALFSIZEIMGPROC HalfSizeImg;
INSERTIMAGEPROC InsertImage;
INVERTIMGPROC InvertImg;
LOADIMGPROC LoadImg;
LOADMULTIPLEIMGPROC LoadMultipleImg;
OCRPROC OCR;
OCRONAREAPROC OCROnArea;
OCRONAREA2PROC OCROnArea2;
OCRSETERRORHANDLERPROC OCRSetErrorHandler;
OCRSETOUTPUTHANDLERPROC OCRSetOutputHandler;
OCRSETPROGRESSHANDLERPROC OCRSetProgressHandler;
OCRSETWARNINGHANDLERPROC OCRSetWarningHandler;
REPLACEIMAGEPROC ReplaceImage;
RESIZEIMGPROC ResizeImg;
ROTATEIMGPROC RotateImg;
SAVEIMGPROC SaveImg;
SAVEMULTIPLEIMGPROC SaveMultipleImg;
SCANANDADDIMAGEPROC ScanAndAddImage;
SCANAUTOBRIGHTPROC ScanAutoBright;
SCANAVAILABLEPROC ScanAvailable;
SCANBRIGHTNESSPROC ScanBrightness;
SCANENDPROC ScanEnd;
SCANIMGPROC ScanImg;
SCANINITPROC ScanInit;
SCANRESOLUTIONPROC ScanResolution;
SCANSELECTPROC ScanSelect;
SCANSHOWUIPROC ScanShowUI;
SCANTHRESHOLDPROC ScanThreshold;
SETLANGUAGEPROC SetLanguage;
SETOUTPUTMODEPROC SetOutputMode;
SETOUTPUTWINDOWPROC SetOutputWindow;
SHRINKIMGPROC ShrinkImg;
} WOCARPTR;
#pragma pack(pop)
/* these hacks will work only with the known versions */
#define WOCAR_DEBUG_NONE 1
#define WOCAR_DEBUG_MORE 2
WOCARPTR *LoadWOCAR(int state);
void FreeWOCAR(WOCARPTR *wp);
HBITMAP LoadGDIPImage(TCHAR *filename);
#ifdef __cplusplus
}
#endif
#endif