Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To obtain a fluid animation (if it what you want to get), you need to use double buffering. For doing this, you will need to create a new java.awt.Image (or a subclass like BufferedImage, or if you want OpenGL accelerated processing, VolatileImage) for each frame you want to display. If you haven't already done so, call Image.getGraphics() to get a java.awt.Graphics object (can also be useful to add your content to the Image). At the end, when you hidden Image is complete, call Graphics.draw() to replace the current display smoothly.</p> <p>VolatileImage is OpenGL accelerated and much faster. When VolatileImage.getGraphics() is called, it actually returns a Graphics2D, which is also part of the accelerated graphic pipeline.</p> <p>It works on Windows, Linux and Solaris, but you need to have OpenGL drivers installed for your graphic card.</p> <p>Some additional refs:</p> <p>Accelerated graphic pipeline:</p> <p><a href="http://download.oracle.com/javase/1.5.0/docs/guide/2d/new_features.html" rel="nofollow">http://download.oracle.com/javase/1.5.0/docs/guide/2d/new_features.html</a></p> <p><a href="http://www.javalobby.org/forums/thread.jspa?threadID=16840&amp;tstart=0" rel="nofollow">http://www.javalobby.org/forums/thread.jspa?threadID=16840&amp;tstart=0</a></p> <p>Double buffering:</p> <p><a href="http://www.java2s.com/Code/Java/2D-Graphics-GUI/Smoothmoveusingdoublebuffer.htm" rel="nofollow">http://www.java2s.com/Code/Java/2D-Graphics-GUI/Smoothmoveusingdoublebuffer.htm</a></p> <p><a href="http://www.heatonresearch.com/articles/23/page2.html" rel="nofollow">http://www.heatonresearch.com/articles/23/page2.html</a></p> <p><a href="http://www.javacooperation.gmxhome.de/BildschirmflackernEng.html" rel="nofollow">http://www.javacooperation.gmxhome.de/BildschirmflackernEng.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload