# Uses of Enum
org.apache.sis.image.DataType

Packages that use DataType
Package
Description
org.apache.sis.coverage.grid
A coverage backed by a regular grid.
org.apache.sis.image
Provides helper classes for handling Java2D rendered images together with some operations.

- ## Uses of DataType in org.apache.sis.coverage.grid

  Methods in org.apache.sis.coverage.grid with parameters of type DataType
  Modifier and Type
  Method
  Description
  `void`
  ImageRenderer.`setData(DataType dataType, Buffer... data)`
  Sets the data as NIO buffers.

- ## Uses of DataType in org.apache.sis.image

  Methods in org.apache.sis.image that return DataType
  Modifier and Type
  Method
  Description
  `static DataType`
  DataType.`forBands(RenderedImage image)`
  Returns the data type of the bands in the given image.
  `static DataType`
  DataType.`forDataBufferType(int type)`
  Returns the enumeration value for the given `DataBuffer` constant.
  `static DataType`
  DataType.`forPrimitiveType(Class<?> type, boolean unsigned)`
  Returns the data type for the given primitive type.
  `static DataType`
  DataType.`forRange(NumberRange<?> range, boolean asInteger)`
  Returns the smallest data type capable to store the given range of values.
  `final DataType`
  DataType.`toFloat()`
  Returns the smallest floating point type capable to store all values of this type without precision lost.
  `static DataType`
  DataType.`valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static DataType[]`
  DataType.`values()`
  Returns an array containing the constants of this enum type, in the order they are declared.
  Methods in org.apache.sis.image with parameters of type DataType
  Modifier and Type
  Method
  Description
  `RenderedImage`
  ImageProcessor.`convert(RenderedImage source, NumberRange<?>[] sourceRanges, MathTransform1D[] converters, DataType targetType, ColorModel colorModel)`
  Returns an image with sample values converted by the given functions.