IMG_ROTATE Enumeration |
Namespace: Kofax.OmniPageCSDK.IproPlus
Member name | Value | Description | |
---|---|---|---|
ROT_AUTO | 0 | Automatic | |
ROT_NO | 1 | Do not transform the image. | |
ROT_RIGHT | 2 | Rotate image to the right (clockwise). | |
ROT_DOWN | 3 | Rotate image down (rotate twice). | |
ROT_LEFT | 4 | Rotate image to the left (counter-clockwise). | |
ROT_FLIPPED | 129 | Mirror image without rotation (mirrored around the Y-axis). | |
ROT_RIGHT_FLIPPED | 130 | Mirror image, then rotate to the right. | |
ROT_DOWN_FLIPPED | 131 | Mirror image, then rotate twice. | |
ROT_LEFT_FLIPPED | 132 | Mirror image, then rotate to the left. |
Rotation is always carried out in 90-degree steps.
Automatic image rotation settings (ROT_AUTO) can only be used with good quality machine-printed texts, but not with images containing 9-pin dot-matrix text or other non-machine printed text.
Mirroring values (those with the suffix FLIPPED) are ignored during image pre-processing.
The following table shows the results of the image transformation using different values.
Original image:
123 |
456 |
789 |
Transformed image:
ROT_NO | LEFT | RIGHT | DOWN |
---|---|---|---|
123 | 369 | 741 | 987 |
456 | 258 | 852 | 654 |
789 | 147 | 963 | 321 |
FLIPPED | LEFT_FLIPPED | RIGHT_FLIPPED | DOWN_FLIPPED |
---|---|---|---|
321 | 147 | 963 | 789 |
654 | 258 | 852 | 456 |
987 | 369 | 741 | 123 |