设置了多段线的线宽,但是为什么画出来的多段线的线宽还是不一样呀?直线和半圆的线宽不一样吗?
效果如图:
E:\bug\2010-11-11 16-38-09.png
代码如下: -
- private void DrawSingleStirrup(Point2dCollection pCollection, int lineWidth)
- {
- Polyline p = new Polyline();
- p.Color = Color.FromRgb(200, 0, 0);
- p.LineWeight = LineWeight.LineWeight060;
- for (int i = 0; i < pCollection.Count; i++) {
- if (i == 1 || i == 3) {
- p.AddVertexAt(i, pCollection[i], 1, lineWidth, lineWidth);
- } else {
- p.AddVertexAt(i, pCollection[i], 0, lineWidth, lineWidth);
- }
- }
- AddEntity(p);
- }
求高人指教。
|