- All Implemented Interfaces:
Serializable
,Comparable<ImageProcessor.Resizing>
,Constable
- Enclosing class:
ImageProcessor
Whether
ImageProcessor
can produce an image of different size compared to requested size.
An image may be resized if the requested size cannot be subdivided into tiles of reasonable size.
For example if the image width is a prime number, there is no way to divide the image horizontally with
an integer number of tiles. The only way to get an integer number of tiles is to change the image size.
The image resizing policy may be used by any operation that involve a resampling.
If a resizing is applied, the new size will be written in the bounds
argument (a Rectangle
).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageProcessor.Resizing
Returns the enum constant of this class with the specified name.static ImageProcessor.Resizing[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
Image size is unmodified; the requested value is used unconditionally. It may result in big tiles (potentially a single tile for the whole image) if the image size is not divisible by a tile size. -
EXPAND
Image size can be increased.ImageProcessor
will try to increase by the smallest amount of pixels allowing the image to be subdivided in tiles.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-