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

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

Introduction

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

The text is from its open source code.

Method

WritableRastercreateWritableChild(int parentX, int parentY, int w, int h, int childMinX, int childMinY, int[] bandList)
Returns a new WritableRaster which shares all or part of this WritableRaster's DataBuffer.
RectanglegetBounds()
Returns the bounding Rectangle of this Raster.
DataBuffergetDataBuffer()
Returns the DataBuffer associated with this Raster.
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.
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.
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.
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.
intgetWidth()
Returns the width in pixels of the Raster.
voidsetDataElements(int x, int y, int w, int h, Object inData)
Sets the data for a rectangle of pixels from a primitive array of type TransferType.
voidsetDataElements(int x, int y, Object inData)
Sets the data for a single pixel from a primitive array of type TransferType.
voidsetDataElements(int x, int y, Raster inRaster)
Sets the data for a rectangle of pixels from an input Raster.
voidsetPixel(int x, int y, int[] iArray)
Sets a pixel in the DataBuffer using an int array of samples for input.
voidsetPixel(int x, int y, float[] fArray)
Sets a pixel in the DataBuffer using a float array of samples for input.
voidsetPixel(int x, int y, double[] dArray)
Sets a pixel in the DataBuffer using a double array of samples for input.
voidsetPixels(int x, int y, int w, int h, int[] iArray)
Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
voidsetPixels(int x, int y, int w, int h, float[] fArray)
Sets all samples for a rectangle of pixels from a float array containing one sample per array element.
voidsetPixels(int x, int y, int w, int h, double[] dArray)
Sets all samples for a rectangle of pixels from a double array containing one sample per array element.
voidsetRect(Raster srcRaster)
Copies pixels from Raster srcRaster to this WritableRaster.
voidsetSample(int x, int y, int b, int s)
Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
voidsetSample(int x, int y, int b, float s)
Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.
voidsetSample(int x, int y, int b, double s)
Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.
voidsetSamples(int x, int y, int w, int h, int b, int[] iArray)
Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per array element.
voidsetSamples(int x, int y, int w, int h, int b, float[] fArray)
Sets the samples in the specified band for the specified rectangle of pixels from a float array containing one sample per array element.
voidsetSamples(int x, int y, int w, int h, int b, double[] dArray)
Sets the samples in the specified band for the specified rectangle of pixels from a double array containing one sample per array element.