GIF图像动画
2010-08-03 13:21
106 查看
// AnimationApplet.java
// The classic animation applet rewritten to use an animated GIF.
//
import javax.swing.*;
public class AnimationApplet extends JApplet {
// public void init() {
// ImageIcon icon = new ImageIcon("images/rolling.gif"); // animated gif
// getContentPane().add(new JLabel(icon));
//}
public static void main(String[] args){
ImageIcon icon = new ImageIcon("images/rolling.gif"); // animated gif
JFrame frame=new JFrame();
frame.setContentPane(new JLabel(icon));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
// The classic animation applet rewritten to use an animated GIF.
//
import javax.swing.*;
public class AnimationApplet extends JApplet {
// public void init() {
// ImageIcon icon = new ImageIcon("images/rolling.gif"); // animated gif
// getContentPane().add(new JLabel(icon));
//}
public static void main(String[] args){
ImageIcon icon = new ImageIcon("images/rolling.gif"); // animated gif
JFrame frame=new JFrame();
frame.setContentPane(new JLabel(icon));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
相关文章推荐
- 家长或孩子图像的Gif动画小人在少儿学习软件中的妙用.
- VS2008+GDI实现多幅图像的GIF动画制作
- 家长或孩子图像的Gif动画小人在少儿学习软件中的妙用.
- 写了一个实用的图像放大缩小程序,但是动画GIF转换后不会显示了,只有第一帧
- 从gif动画图像中导出桢的方法实现
- Graphics->BitmapDecode 介绍Android 平台对图像的解码功能,Android平台支持PNG, JPEG图像格式,并可以支持 gif动画。
- 图像处理--GIF和静态图叠加(三):色彩量化(Color Quantization)
- 应用提高图像与动画性能的一些方法 WWDC session 238
- [转]外部css文件中的 BACKGROUND-IMAGE: url(../image.gif)指定的背景图像无法显示,谁有好主意?
- app的运行效果录制下来并保存成gif动画
- windform 加载动画 ,显示gif动态图片(懒人推荐)
- 显示 jpg、png、gif 图片及 gif 动画
- ie 处理 gif动画 的onload 事件的一个 bug
- Android开发--图形图像与动画(二)--Animation实现图像的 渐变、缩放、位移、旋转
- 完美实现GIF动画缩略图
- VC++实现输出GIF到窗体并显示GIF动画的方法
- HTML5 Canvas 图像动画的实现(实例小球弹跳)
- android gif动画开源框架android-gif-drawable
- 加载GIF动画方法 iOS
- 在 DELPHI 中显示GIF动画(only test Delphi2007)