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 coefficient
public BitmapScalingProcessor(double scaling, IScalingAlgorithm algorithm)
scaling
- is a scaling coefficient
algorithm
- is a scaling algorithm
public 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 image
session
- is an auxiliary object used to support share data between stages of optimization process
Copyright © 1998–2022 iText Group NV. All rights reserved.