Method Summary |
|
public static WritableRectIter | create(RectIter src, WritableRectIter dst) Creates a
WritableRectIter for the specified source and destination iterator.
The two iterators must iterate over a rectangle of the same size, otherwise a
RasterFormatException may be thrown during the iteration.
Parameters: src - The source iterator. Parameters: dst - The destination iterator. |
public boolean | finishedBands() Returns
true if the max band in the image has been exceeded. |
public boolean | finishedLines() Returns
true if the bottom row of the bounding rectangle has been passed. |
public boolean | finishedPixels() Returns
true if the right edge of the bounding rectangle has been passed. |
public int[] | getPixel(int[] array) Returns the samples of the current pixel from the image in an array of int. |
public float[] | getPixel(float[] array) Returns the samples of the current pixel from the image in an array of float. |
public double[] | getPixel(double[] array) Returns the samples of the current pixel from the image in an array of double. |
public int | getSample() Returns the current sample as an integer. |
public int | getSample(int b) Returns the specified sample of the current pixel as an integer. |
public double | getSampleDouble() Returns the current sample as a double. |
public double | getSampleDouble(int b) Returns the specified sample of the current pixel as a double. |
public float | getSampleFloat() Returns the current sample as a float. |
public float | getSampleFloat(int b) Returns the specified sample of the current pixel as a float. |
public void | jumpLines(int num) Jumps downward num lines from the current position. |
public void | jumpPixels(int num) Jumps rightward num pixels from the current position. |
public void | nextBand() Sets the iterator to the next band in the image. |
public boolean | nextBandDone() Sets the iterator to the next band in the image,
and returns
true if the max band has been exceeded. |
public void | nextLine() Sets the iterator to the next line of the image. |
public boolean | nextLineDone() Sets the iterator to the next line in the image,
and returns
true if the bottom row of the bounding rectangle has been passed. |
public void | nextPixel() Sets the iterator to the next pixel in image (that is, move rightward). |
public boolean | nextPixelDone() Sets the iterator to the next pixel in the image (that is, move rightward). |
public void | setPixel(int[] array) Sets all samples of the current pixel to a set of int values. |
public void | setPixel(float[] array) Sets all samples of the current pixel to a set of float values. |
public void | setPixel(double[] array) Sets all samples of the current pixel to a set of double values. |
public void | setSample(int s) Sets the current sample to an integral value. |
public void | setSample(float s) Sets the current sample to a float value. |
public void | setSample(double s) Sets the current sample to a double value. |
public void | setSample(int b, int s) Sets the specified sample of the current pixel to an integral value. |
public void | setSample(int b, float s) Sets the specified sample of the current pixel to a float value. |
public void | setSample(int b, double s) Sets the specified sample of the current pixel to a double value. |
public void | startBands() Sets the iterator to the first band of the image. |
public void | startLines() Sets the iterator to the first line of its bounding rectangle. |
public void | startPixels() Sets the iterator to the leftmost pixel of its bounding rectangle. |