/** * Sets the iterator to the next line in the image, and returns {@code true} if the bottom row * of the bounding rectangle has been passed. */ public boolean nextLineDone() { boolean check = src.nextLineDone(); if (check == dst.nextLineDone()) { return check; } throw new RasterFormatException(ERROR); }
y++; } while (!iterator.nextLineDone()); assert (y == gridBounds.y + gridBounds.height); } catch (NoninvertibleTransformException exception) {
/** * Sets the iterator to the next line in the image, * and returns {@code true} if the bottom row of the bounding rectangle has been passed. */ public boolean nextLineDone() { boolean check = src.nextLineDone(); if (check == dst.nextLineDone()) { return check; } throw new RasterFormatException(ERROR); }
/** * Sets the iterator to the next line in the image, * and returns {@code true} if the bottom row of the bounding rectangle has been passed. */ public boolean nextLineDone() { boolean check = src.nextLineDone(); if (check == dst.nextLineDone()) { return check; } throw new RasterFormatException(ERROR); }
/** * Sets the iterator to the next line in the image, * and returns {@code true} if the bottom row of the bounding rectangle has been passed. * * @return {@code true} if the iteration over lines is finished. */ @Override public boolean nextLineDone() { boolean check = src.nextLineDone(); if (check == dst.nextLineDone()) { return check; } throw new RasterFormatException(ERROR); }
} while (!iter.nextPixelDone()); iter.startPixels(); } while (!iter.nextLineDone()); iter.startLines(); } while (!iter.nextBandDone());
} while (!iter.nextPixelDone()); iter.startPixels(); } while (!iter.nextLineDone()); iter.startLines(); } while (!iter.nextBandDone());
} while (!iter.nextPixelDone()); iter.startPixels(); } while (!iter.nextLineDone()); iter.startLines(); } while (!iter.nextBandDone());
} while (!iter.nextPixelDone()); iter.startPixels(); } while (!iter.nextLineDone()); iter.startLines(); } while (!iter.nextBandDone());
while (!iterator.nextLineDone());
while (!iterator.nextLineDone()); } catch (TransformException cause) { RasterFormatException exception = new RasterFormatException(Errors.format(
while (!iterator.nextLineDone()); } catch (TransformException cause) { RasterFormatException exception = new RasterFormatException(Errors.format(
public void createRipplesImage(WritableRenderedImage destImg) { // image dimensions final int width = destImg.getWidth(); final int height = destImg.getHeight(); // first pixel coordinates int x = destImg.getMinX(); int y = destImg.getMinY(); // center pixel coordinates final int xc = x + destImg.getWidth() / 2; final int yc = y + destImg.getHeight() / 2; // constant term double C = Math.PI * 8; WritableRectIter iter = RectIterFactory.createWritable(destImg, null); do { double dy = ((double) (y - yc)) / yc; do { double dx = ((double) (x - xc)) / xc; double d = Math.sqrt(dx * dx + dy * dy); iter.setSample(Math.sin(d * C)); x++ ; } while (!iter.nextPixelDone()); x = destImg.getMinX(); y++; iter.startPixels(); } while (!iter.nextLineDone()); } // docs-end-method
y++; } while (!iterator.nextLineDone()); assert (y == gridBounds.y + gridBounds.height); } catch (NoninvertibleTransformException exception) {
} while (!iterator.nextLineDone()); } catch (final Exception cause) { final RasterFormatException exception = new RasterFormatException(
} while (!iter.nextLineDone());
!iTarget.nextLineDone());
!iTarget.nextLineDone());
y0++; x0 = srcX; } while (!dstIter.nextLineDone() && !srcIter.nextLineDone()); } catch (final Exception cause) { final RasterFormatException exception = new RasterFormatException( } while (!dstIter.nextLineDone() && !srcIter.nextLineDone()); } catch (final Exception cause) { final RasterFormatException exception = new RasterFormatException(
finished = iTarget.nextLineDone(); for (int i=0; i<iters.length; i++) { if (iters[i].nextLineDone() != finished) {