Class AbstractScaleImageOperation
java.lang.Object
org.hippoecm.frontend.plugins.gallery.imageutil.AbstractImageOperation
org.hippoecm.frontend.plugins.gallery.imageutil.AbstractScaleImageOperation
- All Implemented Interfaces:
ImageOperation
- Direct Known Subclasses:
ScaleImageOperation
,ScaleSvgOperation
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractScaleImageOperation
(ScalingParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateResizeRatio
(double originalWidth, double originalHeight) protected double
calculateResizeRatio
(double originalWidth, double originalHeight, int targetWidth, int targetHeight) Deprecated.float
Deprecated.UseScalingParameters.getCompressionQuality()
()} insteadprotected ScalingParameters
Deprecated.useImageOperationResult.getData()
insteadint
Deprecated.UseImageOperationResult.getHeight()
insteadint
Deprecated.useImageOperationResult.getWidth()
instead
-
Constructor Details
-
AbstractScaleImageOperation
-
-
Method Details
-
getParameters
-
getCompressionQuality
Deprecated.UseScalingParameters.getCompressionQuality()
()} instead -
getScaledData
Deprecated.useImageOperationResult.getData()
instead- Returns:
- the scaled image data
-
getScaledWidth
Deprecated.useImageOperationResult.getWidth()
instead- Returns:
- the width of this scaled image
-
getScaledHeight
Deprecated.UseImageOperationResult.getHeight()
instead- Returns:
- the height of this scaled image
-
calculateResizeRatio
protected double calculateResizeRatio(double originalWidth, double originalHeight) -
calculateResizeRatio
@Deprecated protected double calculateResizeRatio(double originalWidth, double originalHeight, int targetWidth, int targetHeight) Deprecated.
-
ImageUtils.determineResizeRatio(double, double, int, int)
instead