码迷,mamicode.com
首页 > 其他好文 > 详细

制作电影特效效果

时间:2019-01-15 22:32:33      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:com   cli   height   void   技术分享   arp   ima   font   特效   

实现效果:

  技术分享图片 技术分享图片

知识运用:

  Lable控件的Font属性

  PictureBox控件的Size属性

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Start();
            pictureBox1.Visible = false;
            label1.Visible = true;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            timer1.Start();
            pictureBox1.Visible = true;
            label1.Visible = false;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Font = new Font(label1.Font.FontFamily,label1.Font.Size+1);
            pictureBox1.Size = new Size(pictureBox1.Width+5,pictureBox1.Height+5);
        }

 

制作电影特效效果

标签:com   cli   height   void   技术分享   arp   ima   font   特效   

原文地址:https://www.cnblogs.com/feiyucha/p/10274607.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!