嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在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();
}