question: public ImageTranslator ( BufferedImage bi ) { if ( bi != null ) { iwidth = bi . getWidth ( ) ; iheight = bi . getHeight ( ) ; verOrigin = iheight / 2 ; horOrigin = iwidth / 2 ; hor_dpp = 360f / ( float ) iwidth ; ver_dpp = 180f / ( float ) iheight ; if ( Debug . debugging ( "earthimage" ) ) { Debug . output ( "ImageTranslator: getting image pixels w:" + iwidth + ", h:" + iheight + "\n     hor dpp:" + hor_dpp + ", ver dpp:" + ver_dpp ) ; } pixels = getPixels ( bi , 0 , 0 , iwidth , iheight ) ; bi = null ; } }
target:  Create an image translator for an image assumed to be world wide coverage, with the top at 90 degrees, the bottom at -90, the left side at -180 and the right side at 180. Assumes the origin point is in the middle of the image.