Difference between revisions of "Animation"

From Progzoo
Jump to: navigation, search
Line 2: Line 2:
 
import java.awt.image.BufferedImage;
 
import java.awt.image.BufferedImage;
 
import java.awt.*;
 
import java.awt.*;
import java.io.File;
+
import java.io.FileOutputStream;
 
import javax.imageio.ImageIO;
 
import javax.imageio.ImageIO;
 
import net.jmge.gif.Gif89Encoder;
 
import net.jmge.gif.Gif89Encoder;
Line 32: Line 32:
 
</shell>
 
</shell>
 
==Moving block==
 
==Moving block==
<question copyFile="classes.jar" imgOut='flag.png' width='150' height='100' className="Anim">
+
<question copyFile="classes.jar" imgOut='anim.gif' width='150' height='100' className="Anim" classPath=".">
 
<prog>
 
<prog>
 
static void drawFlag(Graphics g, int frame){
 
static void drawFlag(Graphics g, int frame){

Revision as of 15:51, 14 November 2008

Moving block


[Font] [Default] [Show] [Resize] [History] [Profile]