Enum ScalingMode
- java.lang.Object
-
- java.lang.Enum<ScalingMode>
-
- net.coobird.thumbnailator.resizers.configurations.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 BICUBICA hint to use bicubic interpolation when resizing images.BILINEARA hint to use bilinear interpolation when resizing images.PROGRESSIVE_BILINEARA hint to use progressing bilinear interpolation when resizing images.
-
Constructor Summary
Constructors Modifier Constructor Description privateScalingMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScalingModevalueOf(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.
-
-
-
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
ProgressiveBilinearResizerclass.
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-