摘要
针对VB进行多媒体开发时,体现文本多媒体效果实现方法和技巧。将介绍一个通过改变Label控件前景颜色,从而实现字符淡入淡出效果的示例。在窗体中引入定时器(Timer)控件,设置一定的定时间隔Interval(本程序设为30ms)。每当定时器触发时,用VB提供的RGB()函数循环改变显示字符的红、绿、蓝颜色值,从而达到淡入淡出的效果。
This paper offers a method and skill of text multi-media effect realization using VB as developing tool. It also introduces an example of fading in and fading out effect realized by changing forecolor of controller. A timer will be led into the form and set certain timing interval, e.g 30ms. Whenever the timer triggers the fading in and fading out effect will be realized by using the RGB()function of VB to change circulatingly the red, green, blue color value of character.
出处
《信息技术》
2003年第10期36-38,共3页
Information Technology