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

            int status = Gdip.GdipAddPathCurve(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
Example #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));
            }
        }
Example #3
0
        /// <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));
            }
        }