/** * Get scaled image. */ public synchronized BufferedImage getAsBitmapForSize( int width, int height ) { String key = width + "x" + height; BufferedImage result = cache.get( key ); if ( result == null ) { result = createBitmap( width, height ); renderSimple( result ); cache.put( key, result ); } return result; }