public static GraphicsPath CreatePath(SvgLineElement element) { GraphicsPath gp = new GraphicsPath(); gp.AddLine((float)element.X1.AnimVal.Value, (float)element.Y1.AnimVal.Value, (float)element.X2.AnimVal.Value, (float)element.Y2.AnimVal.Value); return gp; }
public static Geometry CreateGeometry(SvgLineElement element) { return new LineGeometry(new Point(Math.Round(element.X1.AnimVal.Value, 4), Math.Round(element.Y1.AnimVal.Value, 4)), new Point(Math.Round(element.X2.AnimVal.Value, 4), Math.Round(element.Y2.AnimVal.Value, 4))); }