public OffScreenImage(Component c,ColorModel cm,WritableRaster raster,boolean isRasterPremultiplied){
  super(cm,raster,isRasterPremultiplied,null);
  this.c=c;
  initSurface(raster.getWidth(),raster.getHeight());
}

public OffScreenImage ( Component c , ColorModel cm , WritableRaster raster , boolean isRasterPremultiplied ) { super ( cm , raster , isRasterPremultiplied , null ) ; this . c = c ; initSurface ( raster . getWidth ( ) , raster . getHeight ( ) ) ; }
constructs an offscreenimage given a color model and tile , for offscreen rendering to be used with a given component . the component is used to obtain the foreground color , background color and font .
