public void AddCurve(Point[] points, float tension) { if (points == null) throw new ArgumentNullException(nameof(points)); int status = Gdip.GdipAddPathCurve2I(_nativePath, points, points.Length, tension); Gdip.CheckStatus(status); }
public unsafe void AddCurve(Point[] points, float tension) { ArgumentNullException.ThrowIfNull(points); fixed(Point *p = points) { Gdip.CheckStatus(Gdip.GdipAddPathCurve2I( new HandleRef(this, _nativePath), p, points.Length, tension)); } }