Java java.awt.image Raster fields, constructors, methods, implement or subclass

Example usage for Java java.awt.image Raster fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.image Raster.

The text is from its open source code.

Method

WritableRastercreateBandedRaster(int dataType, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location)
Creates a Raster based on a BandedSampleModel with the specified data type, width, height, scanline stride, bank indices and band offsets.
WritableRastercreateBandedRaster(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.
WritableRastercreateBandedRaster(int dataType, int w, int h, int bands, Point location)
Creates a Raster based on a BandedSampleModel with the specified data type, width, height, and number of bands.
RastercreateChild(int parentX, int parentY, int width, int height, int childMinX, int childMinY, int[] bandList)
Returns a new Raster which shares all or part of this Raster's DataBuffer.
WritableRastercreateCompatibleWritableRaster()
Create a compatible WritableRaster the same size as this Raster with the same SampleModel and a new initialized DataBuffer.
WritableRastercreateCompatibleWritableRaster(int w, int h)
Create a compatible WritableRaster with the specified size, a new SampleModel, and a new initialized DataBuffer.
WritableRastercreateCompatibleWritableRaster(int x, int y, int w, int h)
Create a compatible WritableRaster with the specified location (minX, minY) and size (width, height), a new SampleModel, and a new initialized DataBuffer.
WritableRastercreateInterleavedRaster(int dataType, int w, int h, int bands, Point location)
Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, and number of bands.
WritableRastercreateInterleavedRaster(int dataType, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location)
Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, scanline stride, pixel stride, and band offsets.
WritableRastercreateInterleavedRaster(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.
WritableRastercreatePackedRaster(int dataType, int w, int h, int[] bandMasks, Point location)
Creates a Raster based on a SinglePixelPackedSampleModel with the specified data type, width, height, and band masks.
WritableRastercreatePackedRaster(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.
WritableRastercreatePackedRaster(int dataType, int w, int h, int bands, int bitsPerBand, Point location)
Creates a Raster based on a packed SampleModel with the specified data type, width, height, number of bands, and bits per band.
WritableRastercreatePackedRaster(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.
WritableRastercreateWritableRaster(SampleModel sm, DataBuffer db, Point location)
Creates a WritableRaster with the specified SampleModel and DataBuffer.
WritableRastercreateWritableRaster(SampleModel sm, Point location)
Creates a WritableRaster with the specified SampleModel.
RectanglegetBounds()
Returns the bounding Rectangle of this Raster.
DataBuffergetDataBuffer()
Returns the DataBuffer associated with this Raster.
ObjectgetDataElements(int x, int y, int w, int h, Object outData)
Returns the pixel data for the specified rectangle of pixels in a primitive array of type TransferType.
ObjectgetDataElements(int x, int y, Object outData)
Returns data for a single pixel in a primitive array of type TransferType.
intgetHeight()
Returns the height in pixels of the Raster.
intgetMinX()
Returns the minimum valid X coordinate of the Raster.
intgetMinY()
Returns the minimum valid Y coordinate of the Raster.
intgetNumBands()
Returns the number of bands (samples per pixel) in this Raster.
int[]getPixel(int x, int y, int[] iArray)
Returns the samples in an array of int for the specified pixel.
float[]getPixel(int x, int y, float[] fArray)
Returns the samples in an array of float for the specified pixel.
double[]getPixel(int x, int y, double[] dArray)
Returns the samples in an array of double for the specified pixel.
int[]getPixels(int x, int y, int w, int h, int[] iArray)
Returns an int array containing all samples for a rectangle of pixels, one sample per array element.
float[]getPixels(int x, int y, int w, int h, float[] fArray)
Returns a float array containing all samples for a rectangle of pixels, one sample per array element.
double[]getPixels(int x, int y, int w, int h, double[] dArray)
Returns a double array containing all samples for a rectangle of pixels, one sample per array element.
intgetSample(int x, int y, int b)
Returns the sample in a specified band for the pixel located at (x,y) as an int.
doublegetSampleDouble(int x, int y, int b)
Returns the sample in a specified band for a pixel located at (x,y) as a double.
floatgetSampleFloat(int x, int y, int b)
Returns the sample in a specified band for the pixel located at (x,y) as a float.
SampleModelgetSampleModel()
Returns the SampleModel that describes the layout of the image data.
intgetSampleModelTranslateX()
Returns the X translation from the coordinate system of the SampleModel to that of the Raster.
intgetSampleModelTranslateY()
Returns the Y translation from the coordinate system of the SampleModel to that of the Raster.
int[]getSamples(int x, int y, int w, int h, int b, int[] iArray)
Returns the samples for a specified band for the specified rectangle of pixels in an int array, one sample per array element.
float[]getSamples(int x, int y, int w, int h, int b, float[] fArray)
Returns the samples for a specified band for the specified rectangle of pixels in a float array, one sample per array element.
double[]getSamples(int x, int y, int w, int h, int b, double[] dArray)
Returns the samples for a specified band for a specified rectangle of pixels in a double array, one sample per array element.
intgetTransferType()
Returns the TransferType used to transfer pixels via the getDataElements and setDataElements methods.
intgetWidth()
Returns the width in pixels of the Raster.