TYPE_BYTE,
TYPE_USHORT,
TYPE_SHORT,
TYPE_INT,
TYPE_FLOAT and
TYPE_DOUBLE datatypes.
| Access | Constructor and Description |
|---|---|
| public | PixelInterleavedSampleModel(int
The data type for storing samples. dataType, int The width (in pixels) of the region of
image data described. w, int The height (in pixels) of the region of
image data described. h, int The pixel stride of the image data. pixelStride, int The line stride of the image data. scanlineStride, int[] The offsets of all bands. bandOffsets)Constructs a PixelInterleavedSampleModel with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
| public SampleModel | Returns: a newSampleModel with the specified width
and height.the width of the resulting w, int SampleModelthe height of the resulting h)SampleModelOverrides java. Creates a new PixelInterleavedSampleModel with the specified width and height. |
| public SampleModel | createSubsetSampleModel(int[] bands)
Overrides java. Creates a new PixelInterleavedSampleModel with a subset of the bands of this PixelInterleavedSampleModel. |
| public int | hashCode()
Overrides java. Returns a hash code value for this object. |
| PixelInterleavedSampleModel | back to summary |
|---|---|
| public PixelInterleavedSampleModel(int dataType, int w, int h, int pixelStride, int scanlineStride, int[] bandOffsets) Constructs a PixelInterleavedSampleModel with the specified parameters. The number of bands will be given by the length of the bandOffsets array.
| |
| createCompatibleSampleModel | back to summary |
|---|---|
| public SampleModel createCompatibleSampleModel(int w, int h) Overrides java. Creates a new PixelInterleavedSampleModel with the specified width and height. The new PixelInterleavedSampleModel will have the same number of bands, storage data type, and pixel stride as this PixelInterleavedSampleModel. The band offsets may be compressed such that the minimum of all of the band offsets is zero.
| |
| createSubsetSampleModel | back to summary |
|---|---|
| public SampleModel createSubsetSampleModel(int[] bands) Overrides java. Creates a new PixelInterleavedSampleModel with a subset of the bands of this PixelInterleavedSampleModel. The new PixelInterleavedSampleModel can be used with any DataBuffer that the existing PixelInterleavedSampleModel can be used with. The new PixelInterleavedSampleModel/DataBuffer combination will represent an image with a subset of the bands of the original PixelInterleavedSampleModel/DataBuffer combination.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |