Enum ImageProcessor.Resizing

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

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 can not 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 type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

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