Enum Class ImageProcessor.Resizing

All Implemented Interfaces:
Serializable, Comparable<Image­Processor​.Resizing>, Constable
Enclosing class:
Image­Processor

public static enum ImageProcessor.Resizing extends Enum<ImageProcessor.Resizing>
Whether Image­Processor 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:
  • Enum Constant Details

    • NONE

      public static final ImageProcessor.Resizing 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

      public static final ImageProcessor.Resizing EXPAND
      Image size can be increased. Image­Processor will try to increase by the smallest amount of pixels allowing the image to be subdivided in tiles.
  • Method Details

    • values

      public static ImageProcessor.Resizing[] 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

      public static ImageProcessor.Resizing valueOf(String name)
      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:
      Illegal­Argument­Exception - if this enum class has no constant with the specified name
      Null­Pointer­Exception - if the argument is null