Package com.day.cq.dam.api.smartcrop
Interface SmartCrop
- All Known Subinterfaces:
SmartSwatch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumType of crop - banner or swatch.static interfaceinterface for rectangle representing the normalized crop boundary.static enumGeneration source for crop - dynamicmedia or assetcompute. -
Method Summary
-
Method Details
-
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
String getName()get the name of the crop- Returns:
- the name of the crop
-