public static Graphics getGraphicsForImage ( Image image ) throws SlickException { Graphics g = ( Graphics ) graphics . get ( image . getTexture ( ) ) ; if ( g == null ) { g = createGraphics ( image ) ; graphics . put ( image . getTexture ( ) , g ) ; } return g ; }
Get a graphics context for a particular image