protected OMGraphic createOMGraphicFromBufferedImage(BufferedImage bi,int x,int y,int zoomLevel,Projection proj) throws InterruptedException {
  OMGraphic raster=null;
  if (bi != null) {
    BufferedImage rasterImage=preprocessImage(bi,bi.getWidth(),bi.getHeight());
    if (proj instanceof Mercator) {
      raster=getTileMatchingProjectionType(rasterImage,x,y,zoomLevel);
    }
 else {
      raster=getTileNotMatchingProjectionType(rasterImage,x,y,zoomLevel);
    }
    if (mapTileLogger.isLoggable(Level.FINE)) {
      raster.putAttribute(OMGraphic.LABEL,new OMTextLabeler("Tile: " + zoomLevel + "|"+ x+ "|"+ y,OMText.JUSTIFY_CENTER));
      raster.setSelected(true);
    }
  }
  return raster;
}

protected OMGraphic createOMGraphicFromBufferedImage ( BufferedImage bi , int x , int y , int zoomLevel , Projection proj ) throws InterruptedException { OMGraphic raster = null ; if ( bi != null ) { BufferedImage rasterImage = preprocessImage ( bi , bi . getWidth ( ) , bi . getHeight ( ) ) ; if ( proj instanceof Mercator ) { raster = getTileMatchingProjectionType ( rasterImage , x , y , zoomLevel ) ; } else { raster = getTileNotMatchingProjectionType ( rasterImage , x , y , zoomLevel ) ; } if ( mapTileLogger . isLoggable ( Level . FINE ) ) { raster . putAttribute ( OMGraphic . LABEL , new OMTextLabeler ( "Tile: " + zoomLevel + "|" + x + "|" + y , OMText . JUSTIFY_CENTER ) ) ; raster . setSelected ( true ) ; } } return raster ; }
creates an omraster appropriate for projection and other parameters from a buffered image .
