ClassLibraryWeiBao/QR二维码/Windows/Render/GeometryExtensions.cs

(完整代码) 691B

using System;
using System.Windows.Media;
using System.Windows;

namespace Gma.QrCodeNet.Encoding.Windows.Render
{
    internal static class GeometryExtensions
    {
        internal static void DrawRectGeometry(this StreamGeometryContext ctx, Int32Rect rect)
        {
            if (rect.IsEmpty == true)
                return;

            ctx.BeginFigure(new Point(rect.X, rect.Y), true, true);
            ctx.LineTo(new Point(rect.X, rect.Y + rect.Height), false, false);
            ctx.LineTo(new Point(rect.X + rect.Width, rect.Y + rect.Height), false, false);
            ctx.LineTo(new Point(rect.X + rect.Width, rect.Y), false, false);
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。