java.awt.image
public class PixelInterleavedSampleModel extends ComponentSampleModel
SampleModel
that uses exactly one element of the
raster’s DataBuffer
per pixel, holds all bands in a
single bank, and stores band data in pixel-interleaved manner.bandOffsets, bankIndices, numBands, numBanks, pixelStride, scanlineStride
dataType, height, width
Constructor and Description |
---|
PixelInterleavedSampleModel(int dataType,
int width,
int height,
int pixelStride,
int scanlineStride,
int[] bandOffsets) |
Modifier and Type | Method and Description |
---|---|
SampleModel |
createCompatibleSampleModel(int width,
int height)
Creates a new
SampleModel that is like this one, but
uses the specified width and height. |
SampleModel |
createSubsetSampleModel(int[] bands)
Creates a new
SampleModel that is like this one, but
uses only a subset of its bands. |
createDataBuffer, equals, getBandOffsets, getBankIndices, getDataElements, getNumDataElements, getOffset, getOffset, getPixel, getPixels, getPixelStride, getSample, getSampleSize, getSampleSize, getScanlineStride, hashCode, setDataElements, setPixel, setSample
getDataElements, getDataType, getHeight, getNumBands, getPixel, getPixel, getPixels, getPixels, getSampleDouble, getSampleFloat, getSamples, getSamples, getSamples, getTransferType, getWidth, setDataElements, setPixel, setPixel, setPixels, setPixels, setPixels, setSample, setSample, setSamples, setSamples, setSamples
public PixelInterleavedSampleModel(int dataType, int width, int height, int pixelStride, int scanlineStride, int[] bandOffsets)
public SampleModel createCompatibleSampleModel(int width, int height)
SampleModel
that is like this one, but
uses the specified width and height.createCompatibleSampleModel
in class ComponentSampleModel
width
- the number of pixels in the horizontal direction.height
- the number of pixels in the vertical direction.public SampleModel createSubsetSampleModel(int[] bands)
SampleModel
that is like this one, but
uses only a subset of its bands.createSubsetSampleModel
in class ComponentSampleModel
bands
- an array whose elements indicate which bands shall
be part of the subset. For example, [0, 2, 3]
would
create a SampleModel containing bands #0, #2 and #3.