public class MinimumXYResolution extends ScaleCalculator
Constructor and Description |
---|
MinimumXYResolution() |
Modifier and Type | Method and Description |
---|---|
ScaleFactor |
calculate(Optional<Dimensions> dimensionsToBeScaled,
Optional<ImageSizeSuggestion> suggestedSize)
Calculates a scaling-factor for a source image/entity of particular dimensions.
|
double |
getMinResolution() |
void |
setMinResolution(double minResolution) |
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ScaleFactor calculate(Optional<Dimensions> dimensionsToBeScaled, Optional<ImageSizeSuggestion> suggestedSize) throws OperationFailedException
ScaleCalculator
calculate
in class ScaleCalculator
dimensionsToBeScaled
- dimensions of the source image/entity that will be scaled, if
they are known.suggestedSize
- a string suggesting dimensions to resize to or a scaling-factor.OperationFailedException
- if a scale-factor cannot be successfully calculated.public double getMinResolution()
public void setMinResolution(double minResolution)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.