Package org.apache.sis.image

# Enum ImageProcessor.Resizing

Object
Enum<ImageProcessor.Resizing>
Resizing

All Implemented Interfaces:
  `Serializable`, `Comparable<ImageProcessor​.Resizing>`, `Constable`

Enclosing class:
  ImageProcessor

public static enum ImageProcessor.Resizing extends Enum<ImageProcessor.Resizing>
Whether `ImageProcessor` 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:
  - `ImageProcessor​.getImageResizingPolicy()`
  - `ImageProcessor​.setImageResizingPolicy(Resizing)`

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class Enum

  `Enum​.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `EXPAND`
  Image size can be increased.
  `NONE`
  Image size is unmodified; the requested value is used unconditionally.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ImageProcessor​.Resizing`
  `valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static ImageProcessor​.Resizing[]`
  `values()`
  Returns an array containing the constants of this enum type, in the order they are declared.

  ### Methods inherited from class Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## 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. `ImageProcessor` 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.
    Returns:
      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.)
    Parameters:
      `name` - the name of the enum constant to be returned.
    Returns:
      the enum constant with the specified name
    Throws:
      `IllegalArgumentException` - if this enum type has no constant with the specified name
      `NullPointerException` - if the argument is null