lFlags

Flags that indicate whether to deskew the image, which background color to use, whether to deskew the image if the skew angle is very small, which type of interpolation is to be used, and whether the image is mostly text or text and pictures. You can use a bitwise OR (|) to specify one flag from each group.

The following flags indicate whether to deskew the image after the method finds the skew angle:

Value

Meaning

DSKW_PROCESS

[0x00000000] Deskew (rotate) the image.

DSKW_NOPROCESS

[0x00000001] Do not deskew (rotate) the image. Use this flag to find the angle of rotation.

The following flags indicate which background color to use to fill areas exposed after rotation:

Value

Meaning

DSKW_FILL

[0x00000000] Use the color in crFill to fill areas exposed after rotation.

DSKW_NOFILL

[0x00000010] Let the method automatically find the suitable background color to fill areas exposed after rotation. Ignore the crFill parameter.

The following flags specify whether to deskew the image if the skew angle is very small:

Value

Meaning

DSKW_NOTHRESHOLD

[0x00000000] Deskew (rotate) the image for any deskew angle value.

DSKW_THRESHOLD

[0x00000100] Do not deskew the image if the deskew angle is very small (less than 0.5 degrees).

The following flags indicate which type of interpolation to perform:

Value

Meaning

DSKW_LINEAR

[0x00000000] Do not perform interpolation when rotating.

DSKW_RESAMPLE

[0x00001000] Perform bilinear interpolation when rotating.

DSKW_BICUBIC

[0x00002000] Perform bicubic interpolation when rotating.

The following flags indicate whether the image contains plain text or text and pictures:

Value

Meaning

DSKW_DOCUMENTIMAGE

[0x00000000] The image contains only text.

DSKW_DOCUMENTANDPICTURE

[0x00010000] The image contains text and pictures.