Example #1
0
        //
        // AddLines
        //
        public void AddLines(Point[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));
            if (points.Length == 0)
                throw new ArgumentException(nameof(points));

            int status = Gdip.GdipAddPathLine2I(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
Example #2
0
        public unsafe void AddLines(Point[] points)
        {
            if (points == null)
            {
                throw new ArgumentNullException(nameof(points));

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