- 积分
- 17
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-5-9
- 最后登录
- 1970-1-1
|
发表于 2017-5-17 22:01:43
|
显示全部楼层
List<PointD> plist = new List<PointD>();
PointD point = new PointD();
point.X = 80;
point.Y = 35;
plist.Add(point);
point.X = 83;
point.Y = 38;
plist.Add(point);
point.X = 86;
point.Y = 40;
plist.Add(point);
point.X = 88;
point.Y = 38;
plist.Add(point);
point.X = 86;
point.Y = 36;
plist.Add(point);
point.X = 82;
point.Y = 34;
plist.Add(point);
point.X = 80;
point.Y = 35;
plist.Add(point);
Shape pShape = new PolygonShape();
pShape.SetPoints(plist);
ColorBreak colorBreak = new PolygonBreak();
colorBreak.Color = Color.FromArgb(125, Color.LightBlue);
Graphic pGraphic = new Graphic(pShape, colorBreak);
this.GraphicCollection.Add(pGraphic);
this.PaintLayers();
这是我根据老师给的网址用C#写出来的,但是没有画出来图形,不知道怎么回事?? |
|