public class AverageCalculationAlgorithm extends Object implements IScalingAlgorithm
| Constructor and Description |
|---|
AverageCalculationAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
BitmapImagePixels |
scale(BitmapImagePixels original, double scaling)
Scales a bitmap image by calculating average color of all pixels of the original image covered by the pixel of resulting image.
|
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–2020 iText Group NV. All rights reserved.