从PolyBezier中提取BeizerCurve

时间:2014-09-23 17:50:53

标签: c# svg

我正在尝试用PDF绘制SVG图片。由于没有更好的方法使用iTextSharp(C#)在PDF中绘制矢量图形而不手动操作,我试图通过调用函数`curveTo(float x1,float y1,float x2,float y2,float x3,漂浮y3)。

这是我的SVG:

<path stroke-linejoin="round" stroke-linecap="round" stroke-width="2" stroke="rgb(0, 0, 0)" fill="none" d="M 1 25 c 0,56 -0,26 21,21 -10,49 32 -15 c 3,48 -1,46 7,3 -2,36 11 -3 c 3,91 -0,68 8,17 -0,27 12 -1 c 3,01 -0,57 6,06 -2,51 9 -3 c 2,79 -0,46 6,2 0,37 9 0 c 1,97 -0,26 4,04 -1,67 6 -2 c 1,86 -0,31 4,18 -0,33 6 0 c 1,63 0,3 3,63 1,09 5 2 c 1,44 0,96 3,01 2,52 4 4 c 1,56 2,34 2,49 5,63 4 8 c 0,72 1,12 2,22 1,87 3 3 c 2,8 4,07 4,97 9,4 8 13 c 1,98 2,36 5,44 4,9 8 6 l 6 0"/>

问题是我需要调整curveTo,每次只接受3个坐标到HTML SVG规范http://www.w3.org/TR/SVG/paths.html#PathDataCurveCommands

哪种状态:“可以指定多组坐标来绘制多面体”。我读过一个polybézier是一套BeizerCurves!我的问题是如何解析它们?

0 个答案:

没有答案