Ejemplo n.º 1
0
        //
        // AddCurve
        //
        public void AddCurve(Point[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

            int status = Gdip.GdipAddPathCurveI(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
Ejemplo n.º 2
0
        public unsafe void AddCurve(Point[] points)
        {
            ArgumentNullException.ThrowIfNull(points);

            fixed(Point *p = points)
            {
                Gdip.CheckStatus(Gdip.GdipAddPathCurveI(new HandleRef(this, _nativePath), p, points.Length));
            }
        }
Ejemplo n.º 3
0
        public unsafe void AddCurve(Point[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

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