public class SelectedCropAndResize extends AbstractCropAndResize<ParameterProvider<info.magnolia.cms.core.Content>>
Constructor and Description |
---|
SelectedCropAndResize() |
Modifier and Type | Method and Description |
---|---|
protected CroppingInfo |
decode(String jsonString) |
protected Coords |
getCroopCoords(BufferedImage source,
ParameterProvider<info.magnolia.cms.core.Content> params)
Determines the coordinates of the cropping to apply on the source image.
|
protected Size |
getEffectiveTargetSize(BufferedImage source,
Coords cropCoords,
ParameterProvider<info.magnolia.cms.core.Content> params)
Determines the actual size for the resized image based on the source image, the crop coordinates
calculated by
AbstractCropAndResize.getCroopCoords(java.awt.image.BufferedImage, P) and the given ParameterProvider. |
void |
setCropInfoSiblingPropertySuffix(String cropInfoSiblingPropertySuffix) |
void |
setTargetHeight(int targetHeight) |
void |
setTargetWidth(int targetWidth) |
apply, getResizer, resize, setResizer
protected Coords getCroopCoords(BufferedImage source, ParameterProvider<info.magnolia.cms.core.Content> params) throws ImagingException
AbstractCropAndResize
getCroopCoords
in class AbstractCropAndResize<ParameterProvider<info.magnolia.cms.core.Content>>
ImagingException
protected Size getEffectiveTargetSize(BufferedImage source, Coords cropCoords, ParameterProvider<info.magnolia.cms.core.Content> params)
AbstractCropAndResize
AbstractCropAndResize.getCroopCoords(java.awt.image.BufferedImage, P)
and the given ParameterProvider.getEffectiveTargetSize
in class AbstractCropAndResize<ParameterProvider<info.magnolia.cms.core.Content>>
public void setCropInfoSiblingPropertySuffix(String cropInfoSiblingPropertySuffix)
public void setTargetWidth(int targetWidth)
public void setTargetHeight(int targetHeight)
protected CroppingInfo decode(String jsonString)
Copyright © 2016 Magnolia International Ltd.. All rights reserved.