Java examples for 2D Graphics:Graphics
Sets the given graphics object to draw with options that will probably go as fast as possible.
//package com.java2s; import java.awt.Graphics2D; import java.awt.RenderingHints; public class Main { private static RenderingHints FAST_RENDER_HINTS = new RenderingHints( null);/*w w w . j a v a 2 s. co m*/ /** Sets the given graphics object to draw with options that will probably go as fast as possible. */ public static void setPerformaceRendering(Graphics2D g) { g.setRenderingHints(FAST_RENDER_HINTS); } }