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
public abstract class AbstractScaleImageOperation extends AbstractImageOperation
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScaleImageOperation(ScalingParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected double
calculateResizeRatio(double originalWidth, double originalHeight)
protected double
calculateResizeRatio(double originalWidth, double originalHeight, int targetWidth, int targetHeight)
Deprecated.float
getCompressionQuality()
Deprecated.UseScalingParameters.getCompressionQuality()
()} insteadprotected ScalingParameters
getParameters()
InputStream
getScaledData()
Deprecated.useImageOperationResult.getData()
insteadint
getScaledHeight()
Deprecated.UseImageOperationResult.getHeight()
insteadint
getScaledWidth()
Deprecated.useImageOperationResult.getWidth()
instead
-
-
-
Constructor Detail
-
AbstractScaleImageOperation
protected AbstractScaleImageOperation(ScalingParameters parameters)
-
-
Method Detail
-
getParameters
protected ScalingParameters getParameters()
-
getCompressionQuality
@Deprecated public float getCompressionQuality()
Deprecated.UseScalingParameters.getCompressionQuality()
()} instead
-
getScaledData
@Deprecated public InputStream getScaledData()
Deprecated.useImageOperationResult.getData()
instead- Returns:
- the scaled image data
-
getScaledWidth
@Deprecated public int getScaledWidth()
Deprecated.useImageOperationResult.getWidth()
instead- Returns:
- the width of this scaled image
-
getScaledHeight
@Deprecated public int 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.
-
-