protected Graphics2D getGraphics ( BufferedImage image ) { Graphics2D graphics = image . createGraphics ( ) ; graphics . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; return graphics ; }
Get a graphics for the image