예제 #1
0
        public void AddPolygon(PointF[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

            int status = Gdip.GdipAddPathPolygon(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
예제 #2
0
        public unsafe void AddPolygon(PointF[] points)
        {
            ArgumentNullException.ThrowIfNull(points);

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