Esempio n. 1
0
        public void AddLines(PointF[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));
            if (points.Length == 0)
                throw new ArgumentException(nameof(points));

            int status = Gdip.GdipAddPathLine2(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
Esempio n. 2
0
        public unsafe void AddLines(PointF[] points)
        {
            if (points == null)
            {
                throw new ArgumentNullException(nameof(points));

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