//
 // AddBeziers
 //
 public void AddBeziers(params Point[] points)
 {
     if (points == null)
         throw new ArgumentNullException(nameof(points));
     int status = Gdip.GdipAddPathBeziersI(_nativePath, points, points.Length);
     Gdip.CheckStatus(status);
 }
Beispiel #2
0
        public unsafe void AddBeziers(params Point[] points)
        {
            ArgumentNullException.ThrowIfNull(points);

            if (points.Length == 0)
                return;

            fixed(Point *p = points)
            {
                Gdip.CheckStatus(Gdip.GdipAddPathBeziersI(new HandleRef(this, _nativePath), p, points.Length));
            }
        }
        public unsafe void AddBeziers(params Point[] points)
        {
            if (points == null)
            {
                throw new ArgumentNullException(nameof(points));
            }
            if (points.Length == 0)
                return;

            fixed(Point *p = points)
            {
                Gdip.CheckStatus(Gdip.GdipAddPathBeziersI(new HandleRef(this, _nativePath), p, points.Length));
            }
        }