public class BitmapScalingProcessor extends Object implements IImageProcessor
Constructor and Description |
---|
BitmapScalingProcessor(double scaling)
Creates an instance of bitmap image processor.
|
BitmapScalingProcessor(double scaling,
IScalingAlgorithm algorithm)
Creates an instance of bitmap image processor.
|
Modifier and Type | Method and Description |
---|---|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess,
OptimizationSession session)
Scales a bitmap image presented as
PdfImageXObject . |
public BitmapScalingProcessor(double scaling)
AverageCalculationAlgorithm
will be used as
scaling algorithm.scaling
- is a scaling coefficientpublic BitmapScalingProcessor(double scaling, IScalingAlgorithm algorithm)
scaling
- is a scaling coefficientalgorithm
- is a scaling algorithmpublic com.itextpdf.kernel.pdf.xobject.PdfImageXObject processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
PdfImageXObject
.processImage
in interface IImageProcessor
objectToProcess
- is a PdfImageXObject
representing the imagesession
- is an auxiliary object used to support share data between stages of
optimization processCopyright © 1998–2024 iText Group NV. All rights reserved.