Enum StreamCdnResizeImageMode

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

    
    public enum StreamCdnResizeImageMode
    extends Enum<StreamCdnResizeImageMode>
                        

    Sets the resizing mode when added as the 'resize' query parameter to a Stream CDN hosted image URL. The default CDN resizing mode is CLIP.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CLIP

      Make the image as large as possible, while maintaining the aspect ratio and keeping the height and width less than or equal to the given height and width.

      CROP

      Crop the image to the given dimensions. Use StreamCdnCropImageMode to give focus to a specific portion of the image.

      FILL

      Make the image as large as possible, while maintaining the aspect ratio and keeping the height and width less than or equal to the given height and width. Fill any leftover space with a black background.

      SCALE

      Ignore the aspect ratio, and resize the image to the given height and width.

    • Constructor Detail

    • Method Detail

      • valueOf

         final StreamCdnResizeImageMode valueOf(String value)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

        Parameters:
        value - The value used to form a query parameter.
      • values

         final Array<StreamCdnResizeImageMode> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.