Example #1
0
        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));
            }
        }
Example #2
0
        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));
                }
        }