예제 #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));
            }
        }
예제 #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));
                }
        }