在网页中如何画一个箭头?
MxDraw网页开发|黄洪辉|2018-05-09 14:49
-
回答:
//绘制一个箭头 mxOcx.PathMoveToEx(1000, 300, 10, 10, 0); mxOcx.PathLineToEx(1000, 500, 30, 0, 0); mxOcx.PathLineTo(1000, 580); mxOcx.DrawPathToPolyline();
//绘制一个虚线箭头 mxOcx.PathMoveToEx(1200, 300, 10, 10, 0); mxOcx.PathLineToEx(1200, 500, 30, 0, 0); mxOcx.PathLineTo(1200, 580); mxOcx.DrawCADColor = 65535; mxOcx.LineType = ("MyLineType3"); mxOcx.DrawPathToPolyline();
//绘制一个圆弧箭头,-0.34是圆弧的凸度. //axMxDrawX1.PathMoveToEx 1400, 300, 10, 10, -0.34); mxOcx.PathMoveToEx(1400, 300, 10, 10, -0.34); mxOcx.PathLineToEx(1400, 500, 30, 0, 0.34); mxOcx.PathLineTo(1400, 600); mxOcx.DrawCADColor = 16776960; mxOcx.LineType = "MyLineType3"; mxOcx.DrawPathToPolyline();