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