• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-28
  • 语言: C#
  • 标签: c#  

资源简介


C# winform GDI 绘图板 源码 可实现铅笔绘图,直线、圆、椭圆、矩形绘图、可调整颜色、线宽,结构清晰,适合初学者研究

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DrawBoard
{
    class DrawTools
    {
        #region 定义目标画板 TargetDrawBoard
        private Graphics _targetDrawBoard;
        public Graphics TargetDrawBoard
        {
            get
            {
                return _targetDrawBoard;
            }
            set
            {
                _targetDrawBoard = value;
            }
        }
        #endregion
        #region 定义铅笔 P
        private Pen _p;
        public Pen P
        {
            get
            {
                return _p;
            }
            set
            {
                _p = value;
            }
        }
        #endregion
        #region 定义原始画布,用来保存已经完成的绘图过程 OrginalImage
        private Image _orginalImage;
        public Image OrginalImage
        {
            get
           

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

    ..A..H.     42496  2017-04-14 17:11  DrawBoard\.vs\DrawBoard\v14\.suo

     文件        189  2017-04-14 10:31  DrawBoard\DrawBoard\App.config

     文件      37376  2017-04-14 17:10  DrawBoard\DrawBoard\bin\Debug\DrawBoard.exe

     文件        189  2017-04-14 10:31  DrawBoard\DrawBoard\bin\Debug\DrawBoard.exe.config

     文件      40448  2017-04-14 17:10  DrawBoard\DrawBoard\bin\Debug\DrawBoard.pdb

     文件      22696  2017-04-14 17:11  DrawBoard\DrawBoard\bin\Debug\DrawBoard.vshost.exe

     文件        189  2017-04-14 10:31  DrawBoard\DrawBoard\bin\Debug\DrawBoard.vshost.exe.config

     文件        490  2015-11-13 10:24  DrawBoard\DrawBoard\bin\Debug\DrawBoard.vshost.exe.manifest

     文件       3956  2017-04-14 13:29  DrawBoard\DrawBoard\DrawBoard.csproj

     文件      13539  2017-04-14 16:59  DrawBoard\DrawBoard\DrawTools.cs

     文件       4554  2017-04-14 17:10  DrawBoard\DrawBoard\Form1.cs

     文件      19410  2017-04-14 17:10  DrawBoard\DrawBoard\Form1.Designer.cs

     文件      27762  2017-04-14 17:10  DrawBoard\DrawBoard\Form1.resx

     文件        868  2017-04-14 10:31  DrawBoard\DrawBoard\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7200  2017-04-14 13:27  DrawBoard\DrawBoard\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        789  2017-04-14 17:11  DrawBoard\DrawBoard\obj\Debug\DrawBoard.csproj.FileListAbsolute.txt

     文件       1012  2017-04-14 17:10  DrawBoard\DrawBoard\obj\Debug\DrawBoard.csproj.GenerateResource.Cache

     文件       2384  2017-04-14 14:05  DrawBoard\DrawBoard\obj\Debug\DrawBoard.csprojResolveAssemblyReference.cache

     文件      37376  2017-04-14 17:10  DrawBoard\DrawBoard\obj\Debug\DrawBoard.exe

     文件      16006  2017-04-14 17:10  DrawBoard\DrawBoard\obj\Debug\DrawBoard.Form1.resources

     文件      40448  2017-04-14 17:10  DrawBoard\DrawBoard\obj\Debug\DrawBoard.pdb

     文件        180  2017-04-14 14:05  DrawBoard\DrawBoard\obj\Debug\DrawBoard.Properties.Resources.resources

     文件          0  2017-04-14 10:31  DrawBoard\DrawBoard\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2017-04-14 10:31  DrawBoard\DrawBoard\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2017-04-14 10:31  DrawBoard\DrawBoard\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        521  2017-04-14 10:31  DrawBoard\DrawBoard\Program.cs

     文件       1344  2017-04-14 10:31  DrawBoard\DrawBoard\Properties\AssemblyInfo.cs

     文件       2831  2017-04-14 10:31  DrawBoard\DrawBoard\Properties\Resources.Designer.cs

     文件       5612  2017-04-14 10:31  DrawBoard\DrawBoard\Properties\Resources.resx

     文件       1096  2017-04-14 10:31  DrawBoard\DrawBoard\Properties\Settings.Designer.cs

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

评论

共有 条评论