资源简介

利用定时器、双缓存在窗体上画图,并实现动画

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//www.srcfans.com
namespace MyForm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {//启动有窗体定时器
            this.timer1.Start();      
        }
        private void button2_Click(object sender EventArgs e)
        {//关闭有窗体定时器
            this.timer1.Stop();
        }
        private void timer1_Tick(object sender EventArgs e)
        {//摆动显示图形
            Image MyImage = new Bitmap(350 300);
            g = Graphics.FromImage(MyImag

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1865  2018-04-10 11:40  窗体定时器_双缓存画图\Backup\MyForm\Form1.cs

     文件       3599  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Form1.Designer.cs

     文件       6008  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Form1.resx

     文件       3723  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\MyForm.csproj

     文件        487  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Program.cs

     文件       1362  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Properties\AssemblyInfo.cs

     文件       2862  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Properties\Resources.Designer.cs

     文件       5612  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Properties\Resources.resx

     文件       1091  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Properties\Settings.Designer.cs

     文件        249  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm\Properties\Settings.settings

     文件        908  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm.sln

    ..A..H.     14336  2009-06-30 11:02  窗体定时器_双缓存画图\Backup\MyForm.v12.suo

     文件       9216  2019-10-08 21:37  窗体定时器_双缓存画图\MyForm\bin\Release\MyForm.exe

     文件      24064  2019-10-08 21:37  窗体定时器_双缓存画图\MyForm\bin\Release\MyForm.pdb

     文件      21656  2019-10-08 20:12  窗体定时器_双缓存画图\MyForm\bin\Release\MyForm.vshost.exe

     文件        490  2018-09-15 15:29  窗体定时器_双缓存画图\MyForm\bin\Release\MyForm.vshost.exe.manifest

     文件       1800  2019-10-08 21:39  窗体定时器_双缓存画图\MyForm\Form1.cs

     文件       3170  2019-10-08 20:38  窗体定时器_双缓存画图\MyForm\Form1.Designer.cs

     文件       6009  2019-10-08 20:38  窗体定时器_双缓存画图\MyForm\Form1.resx

     文件       3913  2019-10-08 17:44  窗体定时器_双缓存画图\MyForm\MyForm.csproj

     文件        791  2019-10-08 17:45  窗体定时器_双缓存画图\MyForm\obj\Release\DesignTimeResolveAssemblyReferences.cache

     文件       6877  2019-10-08 20:12  窗体定时器_双缓存画图\MyForm\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件        660  2019-10-08 21:25  窗体定时器_双缓存画图\MyForm\obj\Release\MyForm.csproj.FileListAbsolute.txt

     文件        847  2019-10-08 21:08  窗体定时器_双缓存画图\MyForm\obj\Release\MyForm.csproj.GenerateResource.Cache

     文件       9216  2019-10-08 21:37  窗体定时器_双缓存画图\MyForm\obj\Release\MyForm.exe

     文件        180  2019-10-08 21:08  窗体定时器_双缓存画图\MyForm\obj\Release\MyForm.Form1.resources

     文件      24064  2019-10-08 21:37  窗体定时器_双缓存画图\MyForm\obj\Release\MyForm.pdb

     文件        180  2019-10-08 21:08  窗体定时器_双缓存画图\MyForm\obj\Release\MyForm.Properties.Resources.resources

     文件       4608  2019-10-08 17:44  窗体定时器_双缓存画图\MyForm\obj\Release\TempPE\Properties.Resources.Designer.cs.dll

     文件        487  2009-06-30 11:02  窗体定时器_双缓存画图\MyForm\Program.cs

............此处省略23个文件信息

评论

共有 条评论