Package com.itextpdf.pdfocr.tesseract4
Class LeptonicaImageRotationHandler
java.lang.Object
com.itextpdf.pdfocr.tesseract4.LeptonicaImageRotationHandler
- All Implemented Interfaces:
-
IImageRotationHandler
Leptonica based implementation of
IImageRotationHandler
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.io.image.ImageData
applyRotation
(com.itextpdf.io.image.ImageData imageData) Apply rotation to image data.
-
Constructor Details
-
LeptonicaImageRotationHandler
public LeptonicaImageRotationHandler()
-
-
Method Details
-
applyRotation
public com.itextpdf.io.image.ImageData applyRotation(com.itextpdf.io.image.ImageData imageData) Description copied from interface:IImageRotationHandler
Apply rotation to image data. If image is not rotated - does nothing.- Specified by:
-
applyRotation
in interfaceIImageRotationHandler
- Parameters:
-
imageData
- to apply rotation to - Returns:
- rotated image if rotation flag is set or self if no rotation
-