@Test public void setSampleForPosition() { final int[] startValues = {100, 200, 300}; Integer[] fill = new Integer[startValues.length]; Arrays.fill(fill, 0); image = ImageUtils.createConstantImage(-3, 3, WIDTH, HEIGHT, fill); iter = new WritableSimpleIterator(image, null, 0); final int w = image.getWidth(); final int h = image.getHeight(); Point pos = new Point(); for (int x = image.getMinX(), ix = 0; ix < w; x++, ix++) { for (int y = image.getMinY(), iy = 0; iy < h; y++, iy++) { pos.setLocation(x, y); for (int band = 0; band < image.getNumBands(); band++) { iter.setSample(pos, band, startValues[band] + iy * w + ix); } } } assertImageValues(startValues, Order.IMAGE_X_Y); }
public boolean setSample(Number value) { return setSample(0, value); }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue);  WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue,
            Order order); }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue);  WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue,
            Order order); boolean setSample(Number value); boolean setSample(Point pos, Number value); boolean setSample(int x, int y, Number value); boolean setSample(int band, Number value); boolean setSample(Point pos, int band, Number value); boolean setSample(int x, int y, int band, Number value); }
WritableSimpleIterator extends AbstractSimpleIterator { public boolean setSample(Number value) { return setSample(0, value); } WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue);  WritableSimpleIterator(WritableRenderedImage image, Rectangle bounds, Number outsideValue,
            Order order); boolean setSample(Number value); boolean setSample(Point pos, Number value); boolean setSample(int x, int y, Number value); boolean setSample(int band, Number value); boolean setSample(Point pos, int band, Number value); boolean setSample(int x, int y, int band, Number value);  }