文件名称:java3
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:919byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
双缓冲技术:
另一种减小帧之间的闪烁的方法是使用双缓冲,它在许多动画applet
中被使用。
主要原理是创建一个后台图象,将一帧画入图象,然后调用drawImage()
将整个图象一次画到屏幕上去。好处是大部分绘制是离屏的。将离屏图象一次
绘至屏幕上比直接在屏幕上绘制要有效得多。
双缓冲可以使动画平滑,但有一个缺点,要分配一张后台图象,如果图象
相当大,这将需要很大一块内存。
当你使用双缓冲技术时,应重载update()。
-Double-buffering technology:
Another reducing flicker between frames is to use double buffering, which in many animation applet
Was used.
The main principle is to create a background image, to a painting into the images, then call drawImage ()
The entire image to the screen a picture up. Advantage is that most of the drawing is off screen. An off-screen image will
Drawn to the screen than drawing directly on the screen to be much more effective.
Double buffering can make the animation smooth, but there is a drawback, to assign a background image, if image
Quite large, this will require a lot of memory.
When you use double buffering techniques should override update ().
另一种减小帧之间的闪烁的方法是使用双缓冲,它在许多动画applet
中被使用。
主要原理是创建一个后台图象,将一帧画入图象,然后调用drawImage()
将整个图象一次画到屏幕上去。好处是大部分绘制是离屏的。将离屏图象一次
绘至屏幕上比直接在屏幕上绘制要有效得多。
双缓冲可以使动画平滑,但有一个缺点,要分配一张后台图象,如果图象
相当大,这将需要很大一块内存。
当你使用双缓冲技术时,应重载update()。
-Double-buffering technology:
Another reducing flicker between frames is to use double buffering, which in many animation applet
Was used.
The main principle is to create a background image, to a painting into the images, then call drawImage ()
The entire image to the screen a picture up. Advantage is that most of the drawing is off screen. An off-screen image will
Drawn to the screen than drawing directly on the screen to be much more effective.
Double buffering can make the animation smooth, but there is a drawback, to assign a background image, if image
Quite large, this will require a lot of memory.
When you use double buffering techniques should override update ().
(系统自动生成,下载前可以参看下载内容)
下载文件列表
java3.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.