Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is there way of how to draw animated gif on node (Read 1923 times)
gamjaradio
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 42
Joined: Jul 16th, 2010
Is there way of how to draw animated gif on node
Feb 18th, 2011 at 10:04am
Print Post  
Is there way of how to draw animated gif on node.

it impossible , then what is the best way that I can draw the moving-image on diagram node?

thanks in advance
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is there way of how to draw animated gif on no
Reply #1 - Feb 20th, 2011 at 2:25pm
Print Post  
Try this:

Code
Select All
Image img = getToolkit().getImage(
	"C:/Program Files/jdk1.6.0_13/demo/plugin/jfc/Java2D/src/images/duke.running.gif");
ShapeNode node = diagram.getFactory().createShapeNode(20, 20, 20, 20);
node.setImage(img); 



Gif animation seems to work out-of-the-box is you use Toolkit.getImage(), while ImageIO.read() only shows the first frame.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint