基本信息
源码名称:C# 绘制矢量图的源程序
源码大小:0.83M
文件格式:.rar
开发语言:C#
更新时间:2021-09-25
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍

用C#编写的矢量图形


 public override void Draw(Graphics g, int dx, int dy, float zoom)
        {
            System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(this.fillColor);
            myBrush.Color = this.Trasparency(myBrush.Color, 80);
            System.Drawing.Pen whitePen = new System.Drawing.Pen(System.Drawing.Color.White);
            System.Drawing.Pen fillPen = new System.Drawing.Pen(this.fillColor);

            g.FillRectangle(myBrush, new RectangleF((this.X dx) * zoom, (this.Y dy) * zoom, (this.X1 - this.X) * zoom, (this.Y1 - this.Y) * zoom));
            g.DrawRectangle(whitePen, (this.X dx) * zoom , (this.Y dy) * zoom , (this.X1 - this.X) * zoom, (this.Y1 - this.Y) * zoom);
            
            g.DrawRectangle(fillPen, (this.X dx -1 ) * zoom, (this.Y dy -1) * zoom, (this.X1 - this.X 2) * zoom, (this.Y1 - this.Y 2) * zoom);
            
            myBrush.Dispose();
            whitePen.Dispose();
            fillPen.Dispose();
        }