public class FixedScaleProviderFactory extends ScaleProviderFactory
FixedScaleProvider instances.logger| Constructor and Description |
|---|
FixedScaleProviderFactory(Logger logger,
double scaleRatio,
PropertyHandler<ScaleProvider> scaleProviderHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected ScaleProvider |
getScaleProviderImpl(int imageToScaleWidth)
The implementation of getting/creating the scale provider, should be implemented by child classes.
|
getScaleProviderpublic FixedScaleProviderFactory(Logger logger, double scaleRatio, PropertyHandler<ScaleProvider> scaleProviderHandler)
scaleRatio - The ratio to scale by.protected ScaleProvider getScaleProviderImpl(int imageToScaleWidth)
ScaleProviderFactorygetScaleProviderImpl in class ScaleProviderFactoryimageToScaleWidth - The width of the image to scale. This parameter CAN be by class implementing
the factory, but this is not mandatory.Copyright © 2023. All rights reserved.