#include "BIDocImg.H"
int CALLBACK DetectSkewAngle( HANDLE hDIB,
BOOL bWhiteBackground,
BOOL bShowProgress,
HWND hParent)
Description
This function will specify the angle of skewing of a scanned image. The function works for only monochrome, 8 and 24 bit per pixel images. The most common case is that when the paper is white and the text is black on it. The rare case is when the paper is black and the text is white on it.
Parameters
|
HANDLE |
hDIB |
Handle of the image. |
|
BOOL |
bWhiteBackground |
TRUE, if the paper is white, and the text is black on it. FALSE, if the paper is black, and the text is white on it. |
|
BOOL |
bShowProgress |
if TRUE, a progress dialog will appear during specifying skewing angle. |
|
HWND |
hParent |
Handler of the parent window. |
Return values
The angle of skewing on success, otherwise if function fails the return value is -1000. If hDib parameter is null or unsupported color depth the return value is -1001. If user cancels the process the return value is -1002.
Programming notes
Requirements
Header : Declared in BIDocImg.h; include BIDocImg.h.
Library : Use BIDocImg.lib.
DLLs : BIDocImg.dll.