ComponentDataBlitOp.INSTANCE.filter(src, dest);
if (src.getSampleModel () instanceof ComponentSampleModel && dest.getSampleModel () instanceof ComponentSampleModel)   ComponentDataBlitOp.INSTANCE.filter(src, dest); else {  int samples[] = src.getPixels (x, y, w, h, (int [])null); dest.setPixels (x, y, w, h, samples); }
  public void setData(Raster src)  {    int x = src.getMinX();    int y = src.getMinY();    int w = src.getWidth();    int h = src.getHeight();        // create a dest child that has the right bounds...    WritableRaster dest =      raster.createWritableChild(x, y, w, h, x, y,				 null  // same bands				 );        // Refer to ComponentDataBlitOp for optimized data blitting:    ComponentDataBlitOp.INSTANCE.filter(src, dest);  }