public class DroppingAlgorithm extends Object implements IScalingAlgorithm
Constructor and Description |
---|
DroppingAlgorithm() |
Modifier and Type | Method and Description |
---|---|
BitmapImagePixels |
scale(BitmapImagePixels original, double scaling)
Scales a bitmap image by copying the nearest neighbor pixel of the original.
|
public BitmapImagePixels scale(BitmapImagePixels original, double scaling)
scale
in interface IScalingAlgorithm
original
- is an image to scale presented as BitmapImagePixels
scaling
- is a scaling coefficient. Should be in (0, 1] range
Copyright © 1998–2022 iText Group NV. All rights reserved.