public interface ImageSizeSuggestion
Modifier and Type | Method and Description |
---|---|
ScaleFactor |
calculateScaleFactor(Optional<Extent> extentToBeScaled)
Calculates the scaling factor.
|
Optional<Integer> |
uniformHeight()
A specific height, if one exists, to which each image should be resized.
|
Optional<ScaleFactor> |
uniformScaleFactor()
A
ScaleFactor , if one exists, that is applied uniformally, independent of the
Extent to be scaled. |
Optional<Integer> |
uniformWidth()
A specific width, if one exists, to which each image should be resized.
|
ScaleFactor calculateScaleFactor(Optional<Extent> extentToBeScaled) throws OperationFailedException
extentToBeScaled
- dimensions of the source image/entity that will be scaled, if they
are known.OperationFailedException
- if insufficient information is available to calculation a
factor.Optional<ScaleFactor> uniformScaleFactor()
ScaleFactor
, if one exists, that is applied uniformally, independent of the
Extent
to be scaled.Optional.empty()
if it does not exist.Optional<Integer> uniformWidth()
Optional.empty()
.Optional<Integer> uniformHeight()
Optional.empty()
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.