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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.io.image.ImageDataapplyRotation(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:IImageRotationHandlerApply rotation to image data. If image is not rotated - does nothing.- Specified by:
-
applyRotationin interfaceIImageRotationHandler - Parameters:
-
imageData- to apply rotation to - Returns:
- rotated image if rotation flag is set or self if no rotation
-