Class CropAndScaleImageOperation
- java.lang.Object
-
- org.hippoecm.frontend.plugins.gallery.imageutil.AbstractImageOperation
-
- org.hippoecm.frontend.plugins.gallery.imageutil.AbstractScaleImageOperation
-
- org.hippoecm.frontend.plugins.gallery.imageutil.ScaleImageOperation
-
- org.hippoecm.frontend.plugins.gallery.imageutil.CropAndScaleImageOperation
-
- All Implemented Interfaces:
ImageOperation
public class CropAndScaleImageOperation extends ScaleImageOperation
-
-
Constructor Summary
Constructors Constructor Description CropAndScaleImageOperation(ScalingParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BufferedImage
processImage(ImageReader reader, int originalWidth, int originalHeight)
-
Methods inherited from class org.hippoecm.frontend.plugins.gallery.imageutil.ScaleImageOperation
execute, run
-
Methods inherited from class org.hippoecm.frontend.plugins.gallery.imageutil.AbstractScaleImageOperation
calculateResizeRatio, calculateResizeRatio, getCompressionQuality, getParameters, getScaledData, getScaledHeight, getScaledWidth
-
Methods inherited from class org.hippoecm.frontend.plugins.gallery.imageutil.AbstractImageOperation
execute, getResult, setResult
-
-
-
-
Constructor Detail
-
CropAndScaleImageOperation
public CropAndScaleImageOperation(ScalingParameters parameters)
-
-
Method Detail
-
processImage
protected BufferedImage processImage(ImageReader reader, int originalWidth, int originalHeight) throws IOException
- Overrides:
processImage
in classScaleImageOperation
- Throws:
IOException
-
-