Uses of Class
java.awt.image.DataBuffer
Packages that use DataBuffer
-
Uses of DataBuffer in java.awt.image
Subclasses of DataBuffer in java.awt.imageModifier and TypeClassDescriptionfinal classThis class extendsDataBufferand stores data internally as bytes.final classThis class extendsDataBufferand stores data internally indoubleform.final classThis class extendsDataBufferand stores data internally infloatform.final classThis class extendsDataBufferand stores data internally as integers.final classThis class extendsDataBufferand stores data internally as shorts.final classThis class extendsDataBufferand stores data internally as shorts.Fields in java.awt.image declared as DataBufferModifier and TypeFieldDescriptionprotected DataBufferRaster.dataBufferThe DataBuffer that stores the image data.Methods in java.awt.image that return DataBufferModifier and TypeMethodDescriptionBandedSampleModel.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 aDataBufferthat corresponds to thisComponentSampleModel.MultiPixelPackedSampleModel.createDataBuffer()Creates aDataBufferthat corresponds to thisMultiPixelPackedSampleModel.abstract DataBufferSampleModel.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 DataBufferModifier and TypeMethodDescriptionstatic WritableRasterRaster.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.static WritableRasterRaster.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.static WritableRasterRaster.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.static WritableRasterRaster.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 RasterRaster.createRaster(SampleModel sm, DataBuffer db, Point location) Creates a Raster with the specified SampleModel and DataBuffer.static WritableRasterRaster.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 typeTransferType.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 ObjectSampleModel.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 anintarray.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.intBandedSampleModel.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).intComponentSampleModel.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).intMultiPixelPackedSampleModel.getSample(int x, int y, int b, DataBuffer data) Returns asintthe sample in a specified band for the pixel located at (x, y).abstract intSampleModel.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.intSinglePixelPackedSampleModel.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).doubleBandedSampleModel.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.doubleComponentSampleModel.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.doubleSampleModel.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.floatBandedSampleModel.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.floatComponentSampleModel.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.floatSampleModel.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.voidBandedSampleModel.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.voidComponentSampleModel.setDataElements(int x, int y, Object obj, DataBuffer data) Sets the data for a single pixel in the specifiedDataBufferfrom a primitive array of typeTransferType.voidMultiPixelPackedSampleModel.setDataElements(int x, int y, Object obj, DataBuffer data) Sets the data for a single pixel in the specifiedDataBufferfrom a primitive array of type TransferType.voidSampleModel.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 voidSampleModel.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.voidSinglePixelPackedSampleModel.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.voidBandedSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data) Sets a pixel in the DataBuffer using an int array of samples for input.voidComponentSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data) Sets a pixel in theDataBufferusing an int array of samples for input.voidMultiPixelPackedSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data) Sets a pixel in theDataBufferusing anintarray for input.voidSampleModel.setPixel(int x, int y, double[] dArray, DataBuffer data) Sets a pixel in the DataBuffer using a double array of samples for input.voidSampleModel.setPixel(int x, int y, float[] fArray, DataBuffer data) Sets a pixel in the DataBuffer using a float array of samples for input.voidSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data) Sets a pixel in the DataBuffer using an int array of samples for input.voidSinglePixelPackedSampleModel.setPixel(int x, int y, int[] iArray, DataBuffer data) Sets a pixel in the DataBuffer using an int array of samples for input.voidBandedSampleModel.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.voidComponentSampleModel.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.voidSampleModel.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.voidSampleModel.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.voidSampleModel.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.voidSinglePixelPackedSampleModel.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.voidBandedSampleModel.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.voidBandedSampleModel.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.voidBandedSampleModel.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.voidComponentSampleModel.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 theDataBufferusing a double for input.voidComponentSampleModel.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 theDataBufferusing a float for input.voidComponentSampleModel.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 theDataBufferusing an int for input.voidMultiPixelPackedSampleModel.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 theDataBufferusing anintfor input.voidSampleModel.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.voidSampleModel.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 voidSampleModel.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.voidSinglePixelPackedSampleModel.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.voidBandedSampleModel.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.voidComponentSampleModel.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.voidSampleModel.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.voidSampleModel.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.voidSampleModel.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.voidSinglePixelPackedSampleModel.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 DataBufferModifierConstructorDescriptionprotectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin) Constructs a Raster with the given SampleModel and DataBuffer.protectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent) Constructs a Raster with the given SampleModel, DataBuffer, and parent.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin) Constructs a WritableRaster with the given SampleModel and DataBuffer.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent) Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.