Example usage for Java java.awt.image Raster fields, constructors, methods, implement or subclass
The text is from its open source code.
WritableRaster | createBandedRaster(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. |
WritableRaster | 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. |
WritableRaster | createBandedRaster(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. |
Raster | createChild(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. |
WritableRaster | createCompatibleWritableRaster() Create a compatible WritableRaster the same size as this Raster with the same SampleModel and a new initialized DataBuffer. |
WritableRaster | createCompatibleWritableRaster(int w, int h) Create a compatible WritableRaster with the specified size, a new SampleModel, and a new initialized DataBuffer. |
WritableRaster | createCompatibleWritableRaster(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. |
WritableRaster | createInterleavedRaster(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. |
WritableRaster | createInterleavedRaster(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. |
WritableRaster | 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. |
WritableRaster | createPackedRaster(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. |
WritableRaster | 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. |
WritableRaster | createPackedRaster(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. |
WritableRaster | 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. |
WritableRaster | createWritableRaster(SampleModel sm, DataBuffer db, Point location) Creates a WritableRaster with the specified SampleModel and DataBuffer. |
WritableRaster | createWritableRaster(SampleModel sm, Point location) Creates a WritableRaster with the specified SampleModel. |
Rectangle | getBounds() Returns the bounding Rectangle of this Raster. |
DataBuffer | getDataBuffer() Returns the DataBuffer associated with this Raster. |
Object | getDataElements(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. |
Object | getDataElements(int x, int y, Object outData) Returns data for a single pixel in a primitive array of type TransferType. |
int | getHeight() Returns the height in pixels of the Raster. |
int | getMinX() Returns the minimum valid X coordinate of the Raster. |
int | getMinY() Returns the minimum valid Y coordinate of the Raster. |
int | getNumBands() 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. |
int | getSample(int x, int y, int b) Returns the sample in a specified band for the pixel located at (x,y) as an int. |
double | getSampleDouble(int x, int y, int b) Returns the sample in a specified band for a pixel located at (x,y) as a double. |
float | getSampleFloat(int x, int y, int b) Returns the sample in a specified band for the pixel located at (x,y) as a float. |
SampleModel | getSampleModel() Returns the SampleModel that describes the layout of the image data. |
int | getSampleModelTranslateX() Returns the X translation from the coordinate system of the SampleModel to that of the Raster. |
int | getSampleModelTranslateY() 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. |
int | getTransferType() Returns the TransferType used to transfer pixels via the getDataElements and setDataElements methods. |
int | getWidth() Returns the width in pixels of the Raster. |