lFlags

Value that indicates how to handle the deskew operation, which rotation interpolation type is to be used, and whether to cut the slice from the original image. You can use a bitwise OR (|) to specify one flag from each group.

The following flags indicate whether to deskew the image. Possible values are:

Value

Meaning

SLICE_DESKEW

[ 0x0000] Do not deskew the sliced bitmap.

SLICE_WITHOUT_DESKEW

[ 0x0001] Deskew the sliced bitmap.

The following flags indicate which rotation interpolation type is to be used. Possible values are:

SLICE_DESKEW_LINEAR

[ 0x0000] Do not perform any interpolation methods when rotating.

SLICE_DESKEW_RESAMPLE

[ 0x0010] Perform bilinear interpolation when rotating.

SLICE_DESKEW_BICUBIC

[ 0x0020] Perform bicubic interpolation when rotating.

The following flags indicate whether to cut the slice from the original image. Possible values are:

SLICE_WITHOUT_CUT

[ 0x0000] Do not cut the slice from its original image. Send the NULL value to the Bitmap parameter of the OnSliceBitmap Event.

SLICE_CUT_SLICES

[0x0100] Cut the slice from its original image. Send a pointer to the created bitmap to the Bitmap parameter of the OnSliceBitmap Event.

If the SLICE_CUT_SLICES and SLICE_DESKEW lFlags are used the function cuts the slices from the deskewed image.