Interface IImageProcessor
- All Known Implementing Classes:
-
BitmapCmykToRgbConverter,BitmapCompressor,BitmapDeindexer,BitmapIndexer,BitmapScalingProcessor,CombinedImageProcessor,JpegCompressor
public interface IImageProcessor
Interface for processing of images stored as
PdfImageXObject with a specified ImageType.
-
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.kernel.pdf.xobject.PdfImageXObjectprocessImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session) Processes an image.
-
Method Details
-
processImage
com.itextpdf.kernel.pdf.xobject.PdfImageXObject processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session) throws IOException Processes an image.- Parameters:
-
objectToProcess- is aPdfImageXObjectrepresenting the image -
session- is an auxiliary object used to support share data between stages of optimization process - Returns:
- processed image if processing can be performed and the same instance otherwise
- Throws:
-
IOException- if any input/output issue occurs
-