Interface SmartCrop

All Known Subinterfaces:
SmartSwatch

@ProviderType public interface SmartCrop
  • 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