Package 

Enum CropImageView.ScaleType

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum CropImageView.ScaleType
    extends Enum<CropImageView.ScaleType>
                        

    Options for scaling the bounds of cropping image to the bounds of Crop Image View.<br></br> Note: Some options are affected by auto-zoom, if enabled.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CENTER_INSIDE

      Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).<br></br> The image is then centered in the view.<br></br> Note: If auto-zoom is enabled and the source image is smaller than crop image view then it will be scaled uniformly to fit the crop image view.

      CENTER_CROP

      Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).<br></br> The image is then centered in the view.

      CENTER

      Center the image in the view, but perform no scaling.<br></br> Note: If auto-zoom is enabled and the source image is smaller than crop image view then it will be scaled uniformly to fit the crop image view.

      FIT_CENTER

      Scale the image uniformly (maintain the image's aspect ratio) to fit in crop image view.<br></br> The largest dimension will be equals to crop image view and the second dimension will be smaller.

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait