public class CombinedImageProcessor extends Object implements IImageProcessor
IImageProcessor
combined of several image processors called one by one.
Constructor and Description |
---|
CombinedImageProcessor()
Creates a new instance of the combined image processor.
|
Modifier and Type | Method and Description |
---|---|
CombinedImageProcessor |
addProcessor(IImageProcessor processor)
Appends one more processor to the chain.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Processes image by set processors one by one.
|
public CombinedImageProcessor()
public CombinedImageProcessor addProcessor(IImageProcessor processor)
processor
- is a new processor to add.
public com.itextpdf.kernel.pdf.xobject.PdfImageXObject processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session) throws IOException
processImage
in interface IImageProcessor
objectToProcess
- is a PdfImageXObject
representing the image
session
- is an auxiliary object used to support share data between stages of optimization process
IOException
- if one of included processors throws an exception
Copyright © 1998–2022 iText Group NV. All rights reserved.