protected void writeClosingFill(Shape s){
  Rectangle2D shapeBounds=s.getBounds2D();
  int wImage=(int)Math.ceil(shapeBounds.getWidth() * getResolution());
  int hImage=(int)Math.ceil(shapeBounds.getHeight() * getResolution());
  wImage=Math.min(wImage,rasteredImageSizeMaximum);
  hImage=Math.min(hImage,rasteredImageSizeMaximum);
  BufferedImage paintImage=new BufferedImage(wImage,hImage,BufferedImage.TYPE_INT_ARGB);
  Graphics2D g=(Graphics2D)paintImage.getGraphics();
  g.scale(wImage / shapeBounds.getWidth(),hImage / shapeBounds.getHeight());
  g.translate(-shapeBounds.getX(),-shapeBounds.getY());
  g.setPaint(getPaint());
  g.fill(s);
  g.dispose();
  writeImage(paintImage,wImage,hImage,shapeBounds.getX(),shapeBounds.getY(),shapeBounds.getWidth(),shapeBounds.getHeight());
}

protected void writeClosingFill ( Shape s ) { Rectangle2D shapeBounds = s . getBounds2D ( ) ; int wImage = ( int ) Math . ceil ( shapeBounds . getWidth ( ) * getResolution ( ) ) ; int hImage = ( int ) Math . ceil ( shapeBounds . getHeight ( ) * getResolution ( ) ) ; wImage = Math . min ( wImage , rasteredImageSizeMaximum ) ; hImage = Math . min ( hImage , rasteredImageSizeMaximum ) ; BufferedImage paintImage = new BufferedImage ( wImage , hImage , BufferedImage . TYPE_INT_ARGB ) ; Graphics2D g = ( Graphics2D ) paintImage . getGraphics ( ) ; g . scale ( wImage / shapeBounds . getWidth ( ) , hImage / shapeBounds . getHeight ( ) ) ; g . translate ( - shapeBounds . getX ( ) , - shapeBounds . getY ( ) ) ; g . setPaint ( getPaint ( ) ) ; g . fill ( s ) ; g . dispose ( ) ; writeImage ( paintImage , wImage , hImage , shapeBounds . getX ( ) , shapeBounds . getY ( ) , shapeBounds . getWidth ( ) , shapeBounds . getHeight ( ) ) ; }
write a command to fill the outline of a previously inserted shape .
