コード例 #1
0
        //
        // AddClosedCurve
        //
        public void AddClosedCurve(Point[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

            int status = Gdip.GdipAddPathClosedCurveI(_nativePath, points, points.Length);
            Gdip.CheckStatus(status);
        }
コード例 #2
0
ファイル: GraphicsPath.cs プロジェクト: pedrobsaila/runtime
        public unsafe void AddClosedCurve(Point[] points)
        {
            ArgumentNullException.ThrowIfNull(points);

            fixed(Point *p = points)
            {
                Gdip.CheckStatus(Gdip.GdipAddPathClosedCurveI(new HandleRef(this, _nativePath), p, points.Length));
            }
        }
コード例 #3
0
        public unsafe void AddClosedCurve(Point[] points)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));

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