consumer.setPixels(x, y, w, h, model, pixels, offset, scansize);
double rx = ((double) srcWidth) / destWidth; double ry = ((double) srcHeight) / destHeight;  int destScansize = (int) Math.round(scansize / rx);  byte[] destPixels = replicatePixels(x, y, w, h, model, pixels, offset, scansize, rx, ry, destScansize);  consumer.setPixels((int) Math.floor(x/rx), (int) Math.floor(y/ry), (int) Math.ceil(w/rx), (int) Math.ceil(h/ry), model, destPixels, 0, destScansize);
    public void setPixels(int x, int y, int w, int h, 	   ColorModel model, byte[] pixels, int offset, int scansize)    {	consumer.setPixels(x, y, w, h, model, pixels, offset, scansize);    }