public void AddCurve(PointF[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

            int status = Gdip.GdipAddPathCurve(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
Exemple #2
0
        /// <summary>
        /// Add cardinal splines to the path object
        /// </summary>
        public unsafe void AddCurve(PointF[] points)
        {
            ArgumentNullException.ThrowIfNull(points);

            fixed(PointF *p = points)
            {
                Gdip.CheckStatus(Gdip.GdipAddPathCurve(new HandleRef(this, _nativePath), p, points.Length));
            }
        }
        /// <summary>
        /// Add cardinal splines to the path object
        /// </summary>
        public unsafe void AddCurve(PointF[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));


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