java.awt.image
public class WritableRaster extends Raster
Constructor Summary | |
---|---|
protected | WritableRaster(SampleModel sampleModel, Point origin)
Creates a new WritableRaster .
|
protected | WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
Creates a new WritableRaster instance.
|
protected | WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
Creates a new WritableRaster instance.
|
Method Summary | |
---|---|
Raster | createChild(int parentX, int parentY, int width, int height, int childMinX, int childMinY, int[] bandList) |
WritableRaster | createWritableChild(int parentX, int parentY, int w, int h, int childMinX, int childMinY, int[] bandList) |
WritableRaster | createWritableTranslatedChild(int childMinX, int childMinY) |
WritableRaster | getWritableParent()
Returns the raster's parent, cast as a {@link WritableRaster}.
|
void | setDataElements(int x, int y, Object inData) |
void | setDataElements(int x, int y, Raster inRaster) |
void | setDataElements(int x, int y, int w, int h, Object inData) |
void | setPixel(int x, int y, int[] iArray)
Sets the samples for the pixel at (x, y) in the raster to the specified
values.
|
void | setPixel(int x, int y, float[] fArray)
Sets the samples for the pixel at (x, y) in the raster to the specified
values.
|
void | setPixel(int x, int y, double[] dArray)
Sets the samples for the pixel at (x, y) in the raster to the specified
values.
|
void | setPixels(int x, int y, int w, int h, int[] iArray)
Sets the sample values for the pixels in the region specified by
(x, y, w, h) in the raster. |
void | setPixels(int x, int y, int w, int h, float[] fArray)
Sets the sample values for the pixels in the region specified by
(x, y, w, h) in the raster. |
void | setPixels(int x, int y, int w, int h, double[] dArray)
Sets the sample values for the pixels in the region specified by
(x, y, w, h) in the raster. |
void | setRect(Raster srcRaster) |
void | setRect(int dx, int dy, Raster srcRaster) |
void | setSample(int x, int y, int b, int s)
Sets the sample value for a band for the pixel at (x, y) in the raster.
|
void | setSample(int x, int y, int b, float s)
Sets the sample value for a band for the pixel at (x, y) in the raster.
|
void | setSample(int x, int y, int b, double s)
Sets the sample value for a band for the pixel at (x, y) in the raster.
|
void | setSamples(int x, int y, int w, int h, int b, int[] iArray)
Sets the sample values for one band for the pixels in the region
specified by (x, y, w, h) in the raster.
|
void | setSamples(int x, int y, int w, int h, int b, float[] fArray)
Sets the sample values for one band for the pixels in the region
specified by (x, y, w, h) in the raster.
|
void | setSamples(int x, int y, int w, int h, int b, double[] dArray)
Sets the sample values for one band for the pixels in the region
specified by (x, y, w, h) in the raster.
|
WritableRaster
.
Parameters: sampleModel the sample model. origin the origin.
WritableRaster
instance.
Parameters: sampleModel the sample model. dataBuffer the data buffer. origin the origin.
WritableRaster
instance.
Parameters: sampleModel the sample model. dataBuffer the data buffer. aRegion the raster's bounds. sampleModelTranslate the translation. parent the parent.
Parameters: parentX parentY w h childMinX childMinY bandList
Returns:
Parameters: childMinX childMinY
Returns:
Returns: The raster's parent.
Parameters: x the x-coordinate of the pixel. y the y-coordinate of the pixel. iArray the sample values (null
not permitted).
Throws: NullPointerException if iArray
is null
.
Parameters: x the x-coordinate of the pixel. y the y-coordinate of the pixel. fArray the sample values (null
not permitted).
Throws: NullPointerException if fArray
is null
.
Parameters: x the x-coordinate of the pixel. y the y-coordinate of the pixel. dArray the sample values (null
not permitted).
Throws: NullPointerException if dArray
is null
.
Parameters: x the x-coordinate of the top-left pixel. y the y-coordinate of the top-left pixel. w the width of the region of pixels. h the height of the region of pixels. iArray the pixel sample values (null
not permitted).
Throws: NullPointerException if iArray
is null
.
Parameters: x the x-coordinate of the top-left pixel. y the y-coordinate of the top-left pixel. w the width of the region of pixels. h the height of the region of pixels. fArray the pixel sample values (null
not permitted).
Throws: NullPointerException if fArray
is null
.
Parameters: x the x-coordinate of the top-left pixel. y the y-coordinate of the top-left pixel. w the width of the region of pixels. h the height of the region of pixels. dArray the pixel sample values (null
not permitted).
Throws: NullPointerException if dArray
is null
.
Parameters: srcRaster
Parameters: dx dy srcRaster
Parameters: x the x-coordinate of the pixel. y the y-coordinate of the pixel. b the band (in the range 0
to
getNumBands() - 1
). s the sample value.
Parameters: x the x-coordinate of the pixel. y the y-coordinate of the pixel. b the band (in the range 0
to
getNumBands() - 1
). s the sample value.
Parameters: x the x-coordinate of the pixel. y the y-coordinate of the pixel. b the band (in the range 0
to
getNumBands() - 1
). s the sample value.
Parameters: x the x-coordinate of the top-left pixel. y the y-coordinate of the top-left pixel. w the width of the region of pixels. h the height of the region of pixels. b the band (in the range 0
to
getNumBands() - 1). iArray the sample values (null
not permitted).
Throws: NullPointerException if iArray
is null
.
Parameters: x the x-coordinate of the top-left pixel. y the y-coordinate of the top-left pixel. w the width of the region of pixels. h the height of the region of pixels. b the band (in the range 0
to
getNumBands() - 1). fArray the sample values (null
not permitted).
Throws: NullPointerException if fArray
is null
.
Parameters: x the x-coordinate of the top-left pixel. y the y-coordinate of the top-left pixel. w the width of the region of pixels. h the height of the region of pixels. b the band (in the range 0
to
getNumBands() - 1). dArray the sample values (null
not permitted).
Throws: NullPointerException if dArray
is null
.