• 大小: 103KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-06
  • 语言: C#
  • 标签: 矢量  C#  作图  画图  画线  

资源简介

直线,圆形,椭圆,矩形的绘制,并可以进行填充,画笔画刷颜色的选择,插入文字的样式选择,位置选择,并且可以保存和加载。可以实现图形的选中删除,移动等功能。 课程设计作业,仅供交流

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Drawing;
namespace Paint
{
    public class DrawEllipse
    {
        //画圆形或椭圆
        public void drawellipse(Graphics g Ellipse circle)
        {
            Pen po = new Pen(circle.Ellipsepencolor circle.Ellipsepenwidth);
            g.DrawEllipse(pocircle.Startpoint.X circle.Startpoint.Y circle.Width circle.Height);
        }
        //填充圆形或椭圆
        public void fillellipse(Graphics g Ellipse circle)
        {
            SolidBrush so = new SolidBrush(circle.Ellipsepencolor);
            g.FillEllipse(so circle.Startpoint.X circle.Startpoint.Y circle.Width circle.Height);
        }
    }
}

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

     文件       4382  2010-07-03 14:01  Paint1\Paint\bin\Debug\openFileDialog1

     文件      34304  2010-07-06 11:03  Paint1\Paint\bin\Debug\Paint.exe

     文件      91648  2010-07-06 11:03  Paint1\Paint\bin\Debug\Paint.pdb

     文件      11600  2010-07-06 11:05  Paint1\Paint\bin\Debug\Paint.vshost.exe

     文件        490  2010-03-17 22:39  Paint1\Paint\bin\Debug\Paint.vshost.exe.manifest

     文件        767  2010-07-03 17:50  Paint1\Paint\DrawEllipse.cs

     文件        550  2010-07-03 13:37  Paint1\Paint\Drawline.cs

     文件       1081  2010-07-03 23:29  Paint1\Paint\DrawRectangle.cs

     文件        388  2010-07-03 23:29  Paint1\Paint\Drawtext.cs

     文件       1542  2010-07-03 17:50  Paint1\Paint\Ellipse.cs

     文件       1603  2010-07-04 00:22  Paint1\Paint\FileTool.cs

     文件       1303  2010-07-03 17:36  Paint1\Paint\Line.cs

     文件      30737  2010-07-06 11:08  Paint1\Paint\Main.cs

     文件      18373  2010-07-06 11:08  Paint1\Paint\Main.Designer.cs

     文件       6624  2010-07-06 11:08  Paint1\Paint\Main.resx

     文件       4440  2010-06-30 10:20  Paint1\Paint\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6577  2010-07-06 11:03  Paint1\Paint\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1532  2010-07-06 01:19  Paint1\Paint\obj\x86\Debug\GenerateResource.read.1.tlog

     文件       3030  2010-07-06 01:19  Paint1\Paint\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       1001  2010-07-06 11:05  Paint1\Paint\obj\x86\Debug\Paint.csproj.FileListAbsolute.txt

     文件      34304  2010-07-06 11:03  Paint1\Paint\obj\x86\Debug\Paint.exe

     文件        180  2010-07-06 01:19  Paint1\Paint\obj\x86\Debug\Paint.Main.resources

     文件      91648  2010-07-06 11:03  Paint1\Paint\obj\x86\Debug\Paint.pdb

     文件       3204  2010-07-04 00:00  Paint1\Paint\obj\x86\Debug\Paint.Properties.Resources.resources

     文件        180  2010-07-04 00:00  Paint1\Paint\obj\x86\Debug\Paint.Word.resources

     文件       7897  2010-06-30 10:21  Paint1\Paint\obj\x86\Debug\ResolveAssemblyReference.cache

     文件       5120  2010-07-03 18:12  Paint1\Paint\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       4591  2010-07-04 00:00  Paint1\Paint\Paint.csproj

     文件        485  2010-07-04 00:00  Paint1\Paint\Program.cs

     文件       1342  2010-06-29 23:17  Paint1\Paint\Properties\AssemblyInfo.cs

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

评论

共有 条评论