翻譯|使用教程|編輯:李顯亮|2020-12-08 10:47:42.297|閱讀 217 次
概述:本系列教程整理了VectorDraw Developer Framework(VDF)最常見問題,教程整理的很齊全,非常適合新手學習。本文將會介紹如何從另一條折線中排除一條折線并加入結果。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
VectorDraw Developer Framework(VDF)是一個用于應用程序可視化的圖形引擎庫。有了VDF提供的功能,您可以輕松地創建、編輯、管理、輸出、輸入和打印2D和3D圖形文件。該庫還支持許多矢量和柵格輸入和輸出格式,包括本地PDF和SVG導出。
點擊下載VectorDraw Developer Framework
問:如何創建帶有凸出的折線并在WebControl中對其進行填充?
答:示例:創建帶有凸起的新折線圖并對其進行陰影處理:
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
熱門文章推薦:
=======================================================
如果您對想要購買正版授權VectorDraw Developer Framework(VDF),可以聯系咨詢相關問題。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn