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