Uses of Class
java.awt.image.DataBuffer

Packages that use DataBuffer
Package
Description
Provides classes for creating and modifying images.
  • Uses of DataBuffer in java.awt.image

    Subclasses of DataBuffer in java.awt.image
    Modifier and Type
    Class
    Description
    class 
    This class extends DataBuffer and stores data internally as bytes.
    class 
    This class extends DataBuffer and stores data internally in double form.
    class 
    This class extends DataBuffer and stores data internally in float form.
    class 
    This class extends DataBuffer and stores data internally as integers.
    class 
    This class extends DataBuffer and stores data internally as shorts.
    class 
    This class extends DataBuffer and stores data internally as shorts.
    Fields in java.awt.image declared as DataBuffer
    Modifier and Type
    Field
    Description
    protected DataBuffer
    Raster.dataBuffer
    The DataBuffer that stores the image data.
    Methods in java.awt.image that return DataBuffer
    Modifier and Type
    Method
    Description
    BandedSampleModel.createDataBuffer()
    Creates a DataBuffer that corresponds to this BandedSampleModel, The DataBuffer's data type, number of banks, and size will be consistent with this BandedSampleModel.
    ComponentSampleModel.createDataBuffer()
    Creates a DataBuffer that corresponds to this ComponentSampleModel.
    MultiPixelPackedSampleModel.createDataBuffer()
    Creates a DataBuffer that corresponds to this MultiPixelPackedSampleModel.
    abstract DataBuffer
    SampleModel.createDataBuffer()
    Creates a DataBuffer that corresponds to this SampleModel.
    SinglePixelPackedSampleModel.createDataBuffer()
    Creates a DataBuffer that corresponds to this SinglePixelPackedSampleModel.
    Raster.getDataBuffer()
    Returns the DataBuffer associated with this Raster.
    Methods in java.awt.image with parameters of type DataBuffer
    Modifier and Type
    Method
    Description
    Raster.createBandedRaster​(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location)
    Creates a Raster based on a BandedSampleModel with the specified DataBuffer, width, height, scanline stride, bank indices, and band offsets.
    Raster.createInterleavedRaster​(DataBuffer dataBuffer, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location)
    Creates a Raster based on a PixelInterleavedSampleModel with the specified DataBuffer, width, height, scanline stride, pixel stride, and band offsets.
    Raster.createPackedRaster​(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bandMasks, Point location)
    Creates a Raster based on a SinglePixelPackedSampleModel with the specified DataBuffer, width, height, scanline stride, and band masks.
    Raster.createPackedRaster​(DataBuffer dataBuffer, int w, int h, int bitsPerPixel, Point location)
    Creates a Raster based on a MultiPixelPackedSampleModel with the specified DataBuffer, width, height, and bits per pixel.
    static Raster
    Raster.createRaster​(SampleModel sm, DataBuffer db, Point location)
    Creates a Raster with the specified SampleModel and DataBuffer.
    Raster.createWritableRaster​(SampleModel sm, DataBuffer db, Point location)
    Creates a WritableRaster with the specified SampleModel and DataBuffer.
    BandedSampleModel.getDataElements​(int x, int y, Object obj, DataBuffer data)
    Returns data for a single pixel in a primitive array of type TransferType.
    ComponentSampleModel.getDataElements​(int x, int y, Object obj, DataBuffer data)
    Returns data for a single pixel in a primitive array of type TransferType.
    MultiPixelPackedSampleModel.getDataElements​(int x, int y, Object obj, DataBuffer data)
    Returns data for a single pixel in a primitive array of type TransferType.
    SampleModel.getDataElements​(int x, int y, int w, int h, Object obj, DataBuffer data)
    Returns the pixel data for the specified rectangle of pixels in a primitive array of type TransferType.
    abstract Object
    SampleModel.getDataElements​(int x, int y, Object obj, DataBuffer data)
    Returns data for a single pixel in a primitive array of type TransferType.
    SinglePixelPackedSampleModel.getDataElements​(int x, int y, Object obj, DataBuffer data)
    Returns data for a single pixel in a primitive array of type TransferType.
    int[]
    BandedSampleModel.getPixel​(int x, int y, int[] iArray, DataBuffer data)
    Returns all samples for the specified pixel in an int array.
    int[]
    ComponentSampleModel.getPixel​(int x, int y, int[] iArray, DataBuffer data)
    Returns all samples for the specified pixel in an int array, one sample per array element.
    int[]
    MultiPixelPackedSampleModel.getPixel​(int x, int y, int[] iArray, DataBuffer data)
    Returns the specified single band pixel in the first element of an int array.
    double[]
    SampleModel.getPixel​(int x, int y, double[] dArray, DataBuffer data)
    Returns the samples for the specified pixel in an array of double.
    float[]
    SampleModel.getPixel​(int x, int y, float[] fArray, DataBuffer data)
    Returns the samples for the specified pixel in an array of float.
    int[]
    SampleModel.getPixel​(int x, int y, int[] iArray, DataBuffer data)
    Returns the samples for a specified pixel in an int array, one sample per array element.
    int[]
    SinglePixelPackedSampleModel.getPixel​(int x, int y, int[] iArray, DataBuffer data)
    Returns all samples in for the specified pixel in an int array.
    int[]
    BandedSampleModel.getPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Returns all samples for the specified rectangle of pixels in an int array, one sample per data array element.
    int[]
    ComponentSampleModel.getPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Returns all samples for the specified rectangle of pixels in an int array, one sample per array element.
    double[]
    SampleModel.getPixels​(int x, int y, int w, int h, double[] dArray, DataBuffer data)
    Returns all samples for a rectangle of pixels in a double array, one sample per array element.
    float[]
    SampleModel.getPixels​(int x, int y, int w, int h, float[] fArray, DataBuffer data)
    Returns all samples for a rectangle of pixels in a float array, one sample per array element.
    int[]
    SampleModel.getPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Returns all samples for a rectangle of pixels in an int array, one sample per array element.
    int[]
    SinglePixelPackedSampleModel.getPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Returns all samples for the specified rectangle of pixels in an int array, one sample per array element.
    int
    BandedSampleModel.getSample​(int x, int y, int b, DataBuffer data)
    Returns as int the sample in a specified band for the pixel located at (x,y).
    int
    ComponentSampleModel.getSample​(int x, int y, int b, DataBuffer data)
    Returns as int the sample in a specified band for the pixel located at (x,y).
    int
    MultiPixelPackedSampleModel.getSample​(int x, int y, int b, DataBuffer data)
    Returns as int the sample in a specified band for the pixel located at (x, y).
    abstract int
    SampleModel.getSample​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for the pixel located at (x,y) as an int.
    int
    SinglePixelPackedSampleModel.getSample​(int x, int y, int b, DataBuffer data)
    Returns as int the sample in a specified band for the pixel located at (x,y).
    double
    BandedSampleModel.getSampleDouble​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for a pixel located at (x,y) as a double.
    double
    ComponentSampleModel.getSampleDouble​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for a pixel located at (x,y) as a double.
    double
    SampleModel.getSampleDouble​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for a pixel located at (x,y) as a double.
    float
    BandedSampleModel.getSampleFloat​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for the pixel located at (x,y) as a float.
    float
    ComponentSampleModel.getSampleFloat​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for the pixel located at (x,y) as a float.
    float
    SampleModel.getSampleFloat​(int x, int y, int b, DataBuffer data)
    Returns the sample in a specified band for the pixel located at (x,y) as a float.
    int[]
    BandedSampleModel.getSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Returns the samples in a specified band for the specified rectangle of pixels in an int array, one sample per data array element.
    int[]
    ComponentSampleModel.getSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Returns the samples in a specified band for the specified rectangle of pixels in an int array, one sample per data array element.
    double[]
    SampleModel.getSamples​(int x, int y, int w, int h, int b, double[] dArray, DataBuffer data)
    Returns the samples for a specified band for a specified rectangle of pixels in a double array, one sample per array element.
    float[]
    SampleModel.getSamples​(int x, int y, int w, int h, int b, float[] fArray, DataBuffer data)
    Returns the samples for a specified band for the specified rectangle of pixels in a float array, one sample per array element.
    int[]
    SampleModel.getSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Returns the samples for a specified band for the specified rectangle of pixels in an int array, one sample per array element.
    int[]
    SinglePixelPackedSampleModel.getSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Returns the samples for a specified band for the specified rectangle of pixels in an int array, one sample per array element.
    void
    BandedSampleModel.setDataElements​(int x, int y, Object obj, DataBuffer data)
    Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
    void
    ComponentSampleModel.setDataElements​(int x, int y, Object obj, DataBuffer data)
    Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
    void
    MultiPixelPackedSampleModel.setDataElements​(int x, int y, Object obj, DataBuffer data)
    Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
    void
    SampleModel.setDataElements​(int x, int y, int w, int h, Object obj, DataBuffer data)
    Sets the data for a rectangle of pixels in the specified DataBuffer from a primitive array of type TransferType.
    abstract void
    SampleModel.setDataElements​(int x, int y, Object obj, DataBuffer data)
    Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
    void
    SinglePixelPackedSampleModel.setDataElements​(int x, int y, Object obj, DataBuffer data)
    Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
    void
    BandedSampleModel.setPixel​(int x, int y, int[] iArray, DataBuffer data)
    Sets a pixel in the DataBuffer using an int array of samples for input.
    void
    ComponentSampleModel.setPixel​(int x, int y, int[] iArray, DataBuffer data)
    Sets a pixel in the DataBuffer using an int array of samples for input.
    void
    MultiPixelPackedSampleModel.setPixel​(int x, int y, int[] iArray, DataBuffer data)
    Sets a pixel in the DataBuffer using an int array for input.
    void
    SampleModel.setPixel​(int x, int y, double[] dArray, DataBuffer data)
    Sets a pixel in the DataBuffer using a double array of samples for input.
    void
    SampleModel.setPixel​(int x, int y, float[] fArray, DataBuffer data)
    Sets a pixel in the DataBuffer using a float array of samples for input.
    void
    SampleModel.setPixel​(int x, int y, int[] iArray, DataBuffer data)
    Sets a pixel in the DataBuffer using an int array of samples for input.
    void
    SinglePixelPackedSampleModel.setPixel​(int x, int y, int[] iArray, DataBuffer data)
    Sets a pixel in the DataBuffer using an int array of samples for input.
    void
    BandedSampleModel.setPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
    void
    ComponentSampleModel.setPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
    void
    SampleModel.setPixels​(int x, int y, int w, int h, double[] dArray, DataBuffer data)
    Sets all samples for a rectangle of pixels from a double array containing one sample per array element.
    void
    SampleModel.setPixels​(int x, int y, int w, int h, float[] fArray, DataBuffer data)
    Sets all samples for a rectangle of pixels from a float array containing one sample per array element.
    void
    SampleModel.setPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
    void
    SinglePixelPackedSampleModel.setPixels​(int x, int y, int w, int h, int[] iArray, DataBuffer data)
    Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
    void
    BandedSampleModel.setSample​(int x, int y, int b, double s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.
    void
    BandedSampleModel.setSample​(int x, int y, int b, float s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.
    void
    BandedSampleModel.setSample​(int x, int y, int b, int s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
    void
    ComponentSampleModel.setSample​(int x, int y, int b, double s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.
    void
    ComponentSampleModel.setSample​(int x, int y, int b, float s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.
    void
    ComponentSampleModel.setSample​(int x, int y, int b, int s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
    void
    MultiPixelPackedSampleModel.setSample​(int x, int y, int b, int s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x, y) in the DataBuffer using an int for input.
    void
    SampleModel.setSample​(int x, int y, int b, double s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.
    void
    SampleModel.setSample​(int x, int y, int b, float s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.
    abstract void
    SampleModel.setSample​(int x, int y, int b, int s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
    void
    SinglePixelPackedSampleModel.setSample​(int x, int y, int b, int s, DataBuffer data)
    Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
    void
    BandedSampleModel.setSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per data array element.
    void
    ComponentSampleModel.setSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per data array element.
    void
    SampleModel.setSamples​(int x, int y, int w, int h, int b, double[] dArray, DataBuffer data)
    Sets the samples in the specified band for the specified rectangle of pixels from a double array containing one sample per array element.
    void
    SampleModel.setSamples​(int x, int y, int w, int h, int b, float[] fArray, DataBuffer data)
    Sets the samples in the specified band for the specified rectangle of pixels from a float array containing one sample per array element.
    void
    SampleModel.setSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per array element.
    void
    SinglePixelPackedSampleModel.setSamples​(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data)
    Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per array element.
    Constructors in java.awt.image with parameters of type DataBuffer
    Modifier
    Constructor
    Description
    protected
    Raster​(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
    Constructs a Raster with the given SampleModel and DataBuffer.
    protected
    Raster​(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
    Constructs a Raster with the given SampleModel, DataBuffer, and parent.
    protected
    WritableRaster​(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
    Constructs a WritableRaster with the given SampleModel and DataBuffer.
    protected
    WritableRaster​(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
    Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.