@Override public void imageComplete(int status){
  if (status == IMAGEERROR || status == IMAGEABORTED) {
    consumer.imageComplete(status);
    return;
  }
  rotate();
  consumer.setPixels(0,0,width,height,ColorModel.getRGBdefault(),raster,0,width);
  consumer.imageComplete(status);
}

@ Override public void imageComplete ( int status ) { if ( status == IMAGEERROR || status == IMAGEABORTED ) { consumer . imageComplete ( status ) ; return ; } rotate ( ) ; consumer . setPixels ( 0 , 0 , width , height , ColorModel . getRGBdefault ( ) , raster , 0 , width ) ; consumer . imageComplete ( status ) ; }
here ' s where we do the work .
