Example usage for Java java.awt.image WritableRaster fields, constructors, methods, implement or subclass
The text is from its open source code.
WritableRaster | createWritableChild(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. |
Rectangle | getBounds() Returns the bounding Rectangle of this Raster. |
DataBuffer | getDataBuffer() Returns the DataBuffer associated with this Raster. |
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. |
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. |
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. |
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 | getWidth() Returns the width in pixels of the Raster. |
void | setDataElements(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. |
void | setDataElements(int x, int y, Object inData) Sets the data for a single pixel from a primitive array of type TransferType. |
void | setDataElements(int x, int y, Raster inRaster) Sets the data for a rectangle of pixels from an input Raster. |
void | setPixel(int x, int y, int[] iArray) Sets a pixel in the DataBuffer using an int array of samples for input. |
void | setPixel(int x, int y, float[] fArray) Sets a pixel in the DataBuffer using a float array of samples for input. |
void | setPixel(int x, int y, double[] dArray) Sets a pixel in the DataBuffer using a double array of samples for input. |
void | setPixels(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. |
void | setPixels(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. |
void | setPixels(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. |
void | setRect(Raster srcRaster) Copies pixels from Raster srcRaster to this WritableRaster. |
void | setSample(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. |
void | setSample(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. |
void | setSample(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. |
void | setSamples(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. |
void | setSamples(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. |
void | setSamples(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. |