摘要
提出了基于JAVA线程的遮罩动画生成方法:先定义两层具有遮罩关系的动画图像,然后在JAVA线程的每个关键帧时刻对底层动画进行覆盖判断,以区分被遮罩面位置与未被遮罩面位置,并用不同方式重画被遮罩面与未被遮罩面,各个不同关键帧画面连续起来便得出了动态遮罩效果。通过一个基于JAVA线程的遮罩动画生成实例,证明用该方法生成遮罩动画能达到令人满意的效果。最后,分析了基于JAVA线程的遮罩动画生成方法中可用来控制遮罩动画效果的各种因素。
A new JAVA thread based masking animation creation method has been proposed. Firstly, animations on two layers are defined. Secondly, whether pixels of background animation are covered or not is judged in every key frame of JAVA thread. Then, redraw the pixels covered in one way, and redraw the pixels not covered in another way, so masking animation is created. This method for masking animation creation can achieve satisfied result, which is proved by a JAVA thread based experiment. Lastly, all the factors that can control masking animation are analyzed.
出处
《微电子学与计算机》
CSCD
北大核心
2006年第2期118-121,125,共5页
Microelectronics & Computer
关键词
遮罩动画
JAVA线程
覆盖判断
Masking animation, JAVA thread, Covering judgment