目前知道有两种方法画多边形GraphicsPath但是用画多边形的方式画三角形不太好老画不正的截图放大就明显了
代码
Point point = new Point( );
Point point = new Point( );
Point point = new Point( );
Point[] pntArr = {point point point};
eGraphicsFillPolygon(BrushesRed pntArr);
代码
int len = ;
int x = ;
int y = ;
Point[] pntArr = new Point[];
pntArr[] = new Point(x y);
pntArr[] = new Point(x len y);
pntArr[] = new Point(x len / (int)(len * MathSqrt() / + y));
GraphicsPath path = new GraphicsPath();
pathAddLines(pntArr);
eGraphicsSmoothingMode = SystemDrawingDrawingDSmoothingModeAntiAlias;
eGraphicsFillPath(BrushesRed path);
eGraphicsSmoothingMode = SystemDrawingDrawingDSmoothingModeDefault;