uFlags
Flags that indicate whether or not to deskew the image and what background color to use. You can use a bitwise OR (|) to specify one flag from each group.
The following flags indicate whether to deskew the image after the function finds the skew angle:
Value |
Meaning |
DSKW_PROCESS |
[$00000000] Deskew (rotate) the image. |
DSKW_NOPROCESS |
[$00000001] Don’t deskew (rotate) the image. Generally this flag is used to find the angle of rotation. |
The following flags indicate what background color to use:
Value |
Meaning |
DSKW_FILL |
[$00000000] Use the color in crFill to fill areas exposed after rotation. |
DSKW_NOFILL |
[$00000010] Let the function automatically find the suitable background color used to fill areas exposed after rotation. crFill is ignored in this case. |
The following flags indicate the image type:
Value |
Meaning |
DSKW_DOCUMENTIMAGE |
[$00000000] The image contains text only. |
DSKW_DOCUMENTANDPICTURE |
[$00010000] The image contains text and pictures or light text. |