Uses of Class java.awt.image.DataBuffer

Uses in package java.awt.image

Classes derived from java.awt.image.DataBuffer

class
A DataBuffer that uses an array of byte primitives to represent each of its banks.
class
A DataBuffer that uses an array of double primitives to represent each of its banks.
class
A DataBuffer that uses an array of float primitives to represent each of its banks.
class
A DataBuffer that uses an array of int primitives to represent each of its banks.
class
A DataBuffer that uses an array of short primitives to represent each of its banks.
class
A DataBuffer that uses an array of short primitives to represent each of its banks.

Constructors with parameter type java.awt.image.DataBuffer

Raster.Raster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
Creates a new raster.
Raster.Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
Creates a new raster.
WritableRaster.WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
Creates a new WritableRaster instance.
WritableRaster.WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
Creates a new WritableRaster instance.

Fields of type java.awt.image.DataBuffer

DataBuffer
The data buffer used to store the pixel values.

Methods with parameter type java.awt.image.DataBuffer

WritableRaster
Raster.createBandedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location)
Creates a new banded raster.
WritableRaster
Raster.createInterleavedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location)
Creates a new interleaved raster.
WritableRaster
Raster.createPackedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bandMasks, Point location)
Creates a new packed raster.
WritableRaster
Raster.createPackedRaster(DataBuffer dataBuffer, int w, int h, int bitsPerPixel, Point location)
Creates a new packed raster.
Raster
Creates a new raster.
WritableRaster
Creates a new writable raster.
Object
SampleModel.getDataElements(int x, int y, int w, int h, Object obj, DataBuffer data)
Object
BandedSampleModel.getDataElements(int x, int y, Object obj, DataBuffer data)
Extract all samples of one pixel and return in an array of transfer type.
Object
Returns the samples for the pixel at location (x, y) in a primitive array (the array type is determined by the data type for this model).
Object
Extract one pixel and return in an array of transfer type.
Object
SampleModel.getDataElements(int x, int y, Object obj, DataBuffer data)
This method is provided as a faster alternative to getPixel(), that can be used when there is no need to decode the pixel into separate sample values.
Object
double[]
SampleModel.getPixel(int x, int y, double[] dArray, DataBuffer data)
Returns an array containing the samples for the pixel at (x, y) in the specified data buffer.
float[]
SampleModel.getPixel(int x, int y, float[] fArray, DataBuffer data)
Returns an array containing the samples for the pixel at (x, y) in the specified data buffer.
int[]
BandedSampleModel.getPixel(int x, int y, int[] iArray, DataBuffer data)
Returns all the samples for the pixel at location (x, y) stored in the specified data buffer.
int[]
ComponentSampleModel.getPixel(int x, int y, int[] iArray, DataBuffer data)
Returns all the samples for the pixel at location (x, y) stored in the specified data buffer.
int[]
MultiPixelPackedSampleModel.getPixel(int x, int y, int[] iArray, DataBuffer data)
Returns an array (of length 1) containing the sample for the pixel at (x, y) in the specified data buffer.
int[]
SampleModel.getPixel(int x, int y, int[] iArray, DataBuffer data)
Returns an array containing the samples for the pixel at (x, y) in the specified data buffer.
int[]
SinglePixelPackedSampleModel.getPixel(int x, int y, int[] iArray, DataBuffer data)
Returns an array containing the samples for the pixel at (x, y) in the specified data buffer.
double[]
SampleModel.getPixels(int x, int y, int w, int h, double[] dArray, DataBuffer data)
Returns an array containing the samples for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
float[]
SampleModel.getPixels(int x, int y, int w, int h, float[] fArray, DataBuffer data)
Returns an array containing the samples for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
int[]
BandedSampleModel.getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
Copy pixels from a region into an array.
int[]
ComponentSampleModel.getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
Returns the samples for all the pixels in a rectangular region.
int[]
SampleModel.getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
Returns an array containing the samples for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
int[]
SinglePixelPackedSampleModel.getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
Returns an array containing the samples for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
int
BandedSampleModel.getSample(int x, int y, int b, DataBuffer data)
Returns a sample value for the pixel at (x, y) in the specified data buffer.
int
ComponentSampleModel.getSample(int x, int y, int b, DataBuffer data)
Returns the sample for band b of the pixel at (x, y) that is stored in the specified data buffer.
int
MultiPixelPackedSampleModel.getSample(int x, int y, int b, DataBuffer data)
Returns the sample value for the pixel at (x, y) in the specified data buffer.
int
SampleModel.getSample(int x, int y, int b, DataBuffer data)
Returns the sample value for the pixel at (x, y) in the specified data buffer.
int
SinglePixelPackedSampleModel.getSample(int x, int y, int b, DataBuffer data)
Returns the sample value for the pixel at (x, y) in the specified data buffer.
double
BandedSampleModel.getSampleDouble(int x, int y, int b, DataBuffer data)
Returns the sample value for the pixel at (x, y) in the specified data buffer.
double
SampleModel.getSampleDouble(int x, int y, int b, DataBuffer data)
Returns the sample value for the pixel at (x, y) in the specified data buffer.
float
BandedSampleModel.getSampleFloat(int x, int y, int b, DataBuffer data)
Returns a sample value for the pixel at (x, y) in the specified data buffer.
float
SampleModel.getSampleFloat(int x, int y, int b, DataBuffer data)
Returns the sample value for the pixel at (x, y) in the specified data buffer.
double[]
SampleModel.getSamples(int x, int y, int w, int h, int b, double[] dArray, DataBuffer data)
Returns an array containing the samples from one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
float[]
SampleModel.getSamples(int x, int y, int w, int h, int b, float[] fArray, DataBuffer data)
Returns an array containing the samples from one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
int[]
BandedSampleModel.getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
Copy one band's samples from a region into an array.
int[]
SampleModel.getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
Returns an array containing the samples from one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
SampleModel.setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data)
void
BandedSampleModel.setDataElements(int x, int y, Object obj, DataBuffer data)
Set the pixel at x, y to the value in the first element of the primitive array obj.
void
Sets the samples for the pixel at location (x, y) from the supplied primitive array (the array type must be consistent with the data type for this model).
void
Set the pixel at x, y to the value in the first element of the primitive array obj.
void
SampleModel.setDataElements(int x, int y, Object obj, DataBuffer data)
void
void
SampleModel.setPixel(int x, int y, double[] dArray, DataBuffer data)
Sets the samples for the pixel at (x, y) in the specified data buffer to the specified values.
void
SampleModel.setPixel(int x, int y, float[] fArray, DataBuffer data)
Sets the samples for the pixel at (x, y) in the specified data buffer to the specified values.
void
BandedSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data)
Sets the samples for the pixel at (x, y) in the specified data buffer to the specified values.
void
ComponentSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data)
Sets the sample values for the pixel at location (x, y) stored in the specified data buffer.
void
MultiPixelPackedSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data)
Sets the sample value for the pixel at (x, y) in the specified data buffer to the specified value.
void
SampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data)
Sets the samples for the pixel at (x, y) in the specified data buffer to the specified values.
void
SinglePixelPackedSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data)
Sets the samples for the pixel at (x, y) in the specified data buffer to the specified values.
void
SampleModel.setPixels(int x, int y, int w, int h, double[] dArray, DataBuffer data)
Sets the sample values for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
SampleModel.setPixels(int x, int y, int w, int h, float[] fArray, DataBuffer data)
Sets the sample values for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
BandedSampleModel.setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
Sets the sample values for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
SampleModel.setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
Sets the sample values for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
SinglePixelPackedSampleModel.setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data)
This method implements a more efficient way to set pixels than the default implementation of the super class.
void
BandedSampleModel.setSample(int x, int y, int b, double s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
SampleModel.setSample(int x, int y, int b, double s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
BandedSampleModel.setSample(int x, int y, int b, float s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
SampleModel.setSample(int x, int y, int b, float s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
BandedSampleModel.setSample(int x, int y, int b, int s, DataBuffer data)
Sets the sample value for band b of the pixel at location (x, y) in the specified data buffer.
void
ComponentSampleModel.setSample(int x, int y, int b, int s, DataBuffer data)
Sets the sample value for band b of the pixel at location (x, y) in the specified data buffer.
void
MultiPixelPackedSampleModel.setSample(int x, int y, int b, int s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
SampleModel.setSample(int x, int y, int b, int s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
SinglePixelPackedSampleModel.setSample(int x, int y, int b, int s, DataBuffer data)
Sets the sample value for a band for the pixel at (x, y) in the specified data buffer.
void
SampleModel.setSamples(int x, int y, int w, int h, int b, double[] dArray, DataBuffer data)
Sets the sample values for one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
SampleModel.setSamples(int x, int y, int w, int h, int b, float[] fArray, DataBuffer data)
Sets the sample values for one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
BandedSampleModel.setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
Sets the sample values for one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.
void
SampleModel.setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
Sets the sample values for one band for the pixels in the region specified by (x, y, w, h) in the specified data buffer.

Methods with return type java.awt.image.DataBuffer

DataBuffer
Creates a new data buffer that is compatible with this sample model.
DataBuffer
Creates a new data buffer that is compatible with this sample model.
DataBuffer
Creates a DataBuffer for holding pixel data in the format and layout described by this SampleModel.
DataBuffer
Creates a new DataBuffer of the correct type and size for this SampleModel.
DataBuffer
Creates a DataBuffer for holding pixel data in the format and layout described by this SampleModel.
DataBuffer
Returns the data buffer that stores the pixel data for this raster.