Enum ScalingMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ScalingMode>

    public enum ScalingMode
    extends java.lang.Enum<ScalingMode>
    An enum which is used to specify how to scale images when creating thumbnails.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BICUBIC
      A hint to use bicubic interpolation when resizing images.
      BILINEAR
      A hint to use bilinear interpolation when resizing images.
      PROGRESSIVE_BILINEAR
      A hint to use progressing bilinear interpolation when resizing images.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ScalingMode()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ScalingMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ScalingMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • BILINEAR

        public static final ScalingMode BILINEAR
        A hint to use bilinear interpolation when resizing images.
      • BICUBIC

        public static final ScalingMode BICUBIC
        A hint to use bicubic interpolation when resizing images.
      • PROGRESSIVE_BILINEAR

        public static final ScalingMode PROGRESSIVE_BILINEAR
        A hint to use progressing bilinear interpolation when resizing images.

        For details on this technique, refer to the documentation of the ProgressiveBilinearResizer class.

    • Constructor Detail

      • ScalingMode

        private ScalingMode()
    • Method Detail

      • values

        public static ScalingMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ScalingMode c : ScalingMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScalingMode valueOf​(java.lang.String name)
        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:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null