Esempio n. 1
0
        public void AddClosedCurve(Point[] points, float tension)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

            int status = Gdip.GdipAddPathClosedCurve2I(_nativePath, points, points.Length, tension);
            Gdip.CheckStatus(status);
        }
Esempio n. 2
0
        public unsafe void AddClosedCurve(Point[] points, float tension)
        {
            ArgumentNullException.ThrowIfNull(points);

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