You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by robiwan <ro...@xponaut.se> on 2009/05/14 10:06:30 UTC

Re: Render animations manually into Graphics2D


Oliver Mihatsch wrote:
> 
> Ok, found the last piece, updating the time is a little bit strange.
> Using this code to update the animation engine, the animation works 
> finally :-)
> 
>         if(!mAnimationEngine.hasStarted()) {
>             mAnimationEngine.start(System.currentTimeMillis());
>             mStartTime = System.currentTimeMillis();
>         } else {
>             mAnimationEngine.setCurrentTime((System.currentTimeMillis() 
> - mStartTime) / 1000f);
>        }
> 

Great! But how does the gvtRoot.paint(...) call result in a BufferedImage ?
Care to share that too :) ?

TIA
/Rob


-- 
View this message in context: http://www.nabble.com/Render-animations-manually-into-Graphics2D-tp22586961p23536127.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org