Package com.day.cq.dam.api.smartcrop
Interface SmartCrop
-
- All Known Subinterfaces:
SmartSwatch
@ProviderType public interface SmartCrop
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SmartCrop.CropType
Type of crop - banner or swatch.static interface
SmartCrop.NormalizedCropRect
interface for rectangle representing the normalized crop boundary.static class
SmartCrop.Source
Generation source for crop - dynamicmedia or assetcompute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SmartCrop.CropType
getCropType()
the type of crop - banner or swatchint
getHeight()
get the absolute pixel heightjava.lang.String
getName()
get the name of the cropSmartCrop.NormalizedCropRect
getNormalizedCropRect()
Get a rectangle representing the crop boundary.SmartCrop.Source
getSource()
get the source of crop - assetcompute or dynamic mediaint
getWidth()
get the absolute pixel width
-
-
-
Method Detail
-
getWidth
int getWidth()
get the absolute pixel width- Returns:
- the pixel width of crop
-
getHeight
int getHeight()
get the absolute pixel height- Returns:
- the pixel height of crop
-
getNormalizedCropRect
SmartCrop.NormalizedCropRect getNormalizedCropRect()
Get a rectangle representing the crop boundary. Contains relative coordinates for the top left corner and relative width & height- Returns:
SmartCrop.NormalizedCropRect
-
getSource
SmartCrop.Source getSource()
get the source of crop - assetcompute or dynamic media- Returns:
SmartCrop.Source
-
getCropType
SmartCrop.CropType getCropType()
the type of crop - banner or swatch- Returns:
SmartCrop.CropType
-
getName
java.lang.String getName()
get the name of the crop- Returns:
- the name of the crop
-
-