public class FixedScaleProvider extends Object implements ScaleProvider
| Constructor and Description |
|---|
FixedScaleProvider(double scaleRatio) |
FixedScaleProvider(double scaleRatio,
ScaleMethod method) |
| Modifier and Type | Method and Description |
|---|---|
double |
getScaleRatio() |
BufferedImage |
scaleImage(BufferedImage image) |
public FixedScaleProvider(double scaleRatio,
ScaleMethod method)
scaleRatio - The scale ratio to use.method - The method used for scaling the image.public FixedScaleProvider(double scaleRatio)
scaleRatio - The scale ratio to use.public double getScaleRatio()
getScaleRatio in interface ScaleProviderpublic BufferedImage scaleImage(BufferedImage image)
scaleImage in interface ScaleProviderimage - The image to scale.Copyright © 2016. All rights reserved.