Lines Matching refs:srcRaster
364 * Copies pixels from Raster srcRaster to this WritableRaster. Each pixel
365 * in srcRaster is copied to the same x,y address in this raster, unless
366 * the address falls outside the bounds of this raster. srcRaster
376 * Raster srcRaster;
378 * for (int b = 0; b < srcRaster.getNumBands(); b++) {
379 * dstRaster.setSample(x, y, b, srcRaster.getSample(x, y, b));
388 * srcRaster's SampleModel treats the sample as a signed or unsigned
398 * @param srcRaster The Raster from which to copy pixels.
400 * @throws NullPointerException if srcRaster is null.
402 public void setRect(Raster srcRaster) {
403 setRect(0,0,srcRaster);
407 * Copies pixels from Raster srcRaster to this WritableRaster.
408 * For each (x, y) address in srcRaster, the corresponding pixel
411 * srcRaster must have the same number of bands as this WritableRaster.
420 * @param srcRaster The Raster from which to copy pixels.
422 * @throws NullPointerException if srcRaster is null.
424 public void setRect(int dx, int dy, Raster srcRaster) {
425 int width = srcRaster.getWidth();
426 int height = srcRaster.getHeight();
427 int srcOffX = srcRaster.getMinX();
428 int srcOffY = srcRaster.getMinY();
456 switch (srcRaster.getSampleModel().getDataType()) {
465 srcRaster.getPixels(srcOffX, srcOffY+startY, width, 1,
475 srcRaster.getPixels(srcOffX, srcOffY+startY, width, 1,
486 srcRaster.getPixels(srcOffX, srcOffY+startY, width, 1,