VectorDraw Developer Framework
问:如何创建带有凸出的折线并在WebControl中对其进行填充/span>
答:示例:创建带有凸起的新折线图并对其进行阴影处理:
var pntArray = [[0, 0, 0], [5, 5, 0], [7, 7, 0, -1], [7, 5, 0], [5, 0, 0], [0, 0, 0]];//An array of vertexes that define the polyline.Each item is an array of x,y,z,bulge. // Bulge is the forth element of a vertex and it can be a negative number for clockwise arc or positive number for anti-clockwise arc. var pLine = vdcanvas.AddPolyline(pntArray, true); var ph = vdcanvas.AddPolyHatch([pLine], null, true);// add our figure in our polyhatch object ph.HatchProperties = vdcanvas.createNewHatchProperties("u20", vdConst.colorFromString("255,255,0,255"), vdConst.colorFromString("255,0,0,255"), 1.0, 0.0);// create new hatch properties (HatchPatternName, FillBkColor, FillColor,hatchscale, hatchangle) ph.HatchProperties.DrawBoundary = true;//By default is false so the boundary is not be drawn vdcanvas.UpdateFig(ph);//update the figure in order to get the changes vdcanvas.DrawEntity(ph); // draw the figure setTimeout(vdcanvas.redraw); // post a redraw in order to see the hatch on the canvas
热门文章推荐:
-
如何排除GroundSurface对象的三角形区域/span>
-
复杂自定义对象的入门指南
=======================================================
如果您对想要购买正版授权VectorDraw Developer Framework(VDF),可以联系在线客服>>咨询相关问题。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!