# Uses of Enum Class
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.
org.apache.sis.storage.modifier
A plugin mechanism for modifying some aspects of the resources read by data stores.

- ## 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

  Subclasses with type arguments of type DataType in org.apache.sis.image
  Modifier and Type
  Class
  Description
  `enum`
  `DataType`
  Identification of the primitive type used for storing sample values in an 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.`forBands(SampleModel sm)`
  Returns the data type of the bands managed by the given the sample model.
  `static DataType`
  DataType.`forDataBufferType(int type)`
  Returns the enumeration value for the given `DataBuffer` constant.
  `static DataType`
  DataType.`forNumberOfBits(int size, boolean real, boolean signed)`
  Returns the enumeration value for the given number of bits.
  `static DataType`
  DataType.`forPrimitiveType(Class<?> type, boolean unsigned)`
  Returns the data type for the given primitive type.
  `static DataType`
  DataType.`forRange(NumberRange<?> range, boolean forceInteger)`
  Returns the smallest data type capable to store the given range of values.
  `DataType`
  ImageCombiner.`getBandType()`
  Returns the type of number used for representing the values of each band.
  `DataType`
  PixelIterator.`getDataType()`
  Returns the type of sample values.
  `final DataType`
  DataType.`toFloat()`
  Returns the smallest floating point type capable to store all values of this type without precision lost.
  `final DataType`
  DataType.`toPrimitive()`
  Returns the primitive (signed) variant of this data type.
  `static DataType`
  DataType.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static DataType[]`
  DataType.`values()`
  Returns an array containing the constants of this enum class, 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)`
  Returns an image with sample values converted by the given functions.
  `SampleModel`
  ImageLayout.`createSampleModel(DataType dataType, Rectangle bounds, int numBands)`
  Returns a sample model for the given data type with a size computed from the given image bounds.

- ## Uses of DataType in org.apache.sis.storage.modifier

  Methods in org.apache.sis.storage.modifier that return types with arguments of type DataType
  Modifier and Type
  Method
  Description
  `Optional<DataType>`
  CoverageModifier.Source.`getDataType()`
  Returns the type in which the coverage (raster) data are stored.
  Constructors in org.apache.sis.storage.modifier with parameters of type DataType
  Modifier
  Constructor
  Description
  ``
  `BandSource(DataStore store, int coverageIndex, int bandIndex, int numBands, DataType dataType)`
  Creates a new source for the specified band.
  ``
  `Source(DataStore store, int coverageIndex, DataType dataType)`
  Creates a new source for a coverage at the specified index.