Exemplo n.º 1
0
        public void AddCurve(Point[] points, int offset, int numberOfSegments, float tension)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

            int status = Gdip.GdipAddPathCurve3I(_nativePath, points, points.Length,
                            offset, numberOfSegments, tension);

            Gdip.CheckStatus(status);
        }
Exemplo n.º 2
0
        public unsafe void AddCurve(Point[] points, int offset, int numberOfSegments, float tension)
        {
            ArgumentNullException.ThrowIfNull(points);

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