protected BufferedImage createTileImageFromDrawingAttributes(DrawingAttributes da){
  BufferedImage bi=null;
  if (da != null) {
    OMRect rect=new OMRect(0,0,TILE_SIZE,TILE_SIZE);
    da.setTo(rect);
    rect.generate(new com.bbn.openmap.proj.Mercator(new LatLonPoint.Double(),100000,TILE_SIZE,TILE_SIZE));
    bi=new BufferedImage(TILE_SIZE,TILE_SIZE,BufferedImage.TYPE_INT_ARGB);
    Graphics g=bi.getGraphics();
    rect.render(g);
    g.dispose();
  }
  return bi;
}

protected BufferedImage createTileImageFromDrawingAttributes ( DrawingAttributes da ) { BufferedImage bi = null ; if ( da != null ) { OMRect rect = new OMRect ( 0 , 0 , TILE_SIZE , TILE_SIZE ) ; da . setTo ( rect ) ; rect . generate ( new com . bbn . openmap . proj . Mercator ( new LatLonPoint . Double ( ) , 100000 , TILE_SIZE , TILE_SIZE ) ) ; bi = new BufferedImage ( TILE_SIZE , TILE_SIZE , BufferedImage . TYPE_INT_ARGB ) ; Graphics g = bi . getGraphics ( ) ; rect . render ( g ) ; g . dispose ( ) ; } return bi ; }
create a bufferedimage from the provided drawingattributes .
