🦄 Beautiful AntdUI

This commit is contained in:
Tom
2024-11-09 14:46:28 +08:00
parent 3183862e72
commit 357fa92aad
13 changed files with 1148 additions and 144 deletions

View File

@@ -94,13 +94,13 @@ namespace FontTest
#region 线
g.FillRectangle(Brushes.Black, new Rectangle(0, 0, size, 1));
g.FillRectangle(Brushes.Black, new Rectangle(0, size - 1, size, 1));
g.FillRectangle(Brushes.Black, new Rectangle(0, 0, 1, size));
g.FillRectangle(Brushes.Black, new Rectangle(size - 1, 0, 1, size));
g.Fill(Brushes.Black, new Rectangle(0, 0, size, 1));
g.Fill(Brushes.Black, new Rectangle(0, size - 1, size, 1));
g.Fill(Brushes.Black, new Rectangle(0, 0, 1, size));
g.Fill(Brushes.Black, new Rectangle(size - 1, 0, 1, size));
using (var brush = new SolidBrush(Color.FromArgb(180, Color.Green)))
{
g.FillRectangle(brush, new RectangleF(0, cs - 1, size, 2));
g.Fill(brush, new RectangleF(0, cs - 1, size, 2));
}
#endregion
@@ -115,8 +115,8 @@ namespace FontTest
r = true;
using (var brush = new SolidBrush(Color.FromArgb(100, Color.Green)))
{
g.FillRectangle(brush, new Rectangle(0, ry, size, 1));
g.FillRectangle(brush, new Rectangle(0, ry + rheight, size, 1));
g.Fill(brush, new Rectangle(0, ry, size, 1));
g.Fill(brush, new Rectangle(0, ry + rheight, size, 1));
}
using (var brush = new SolidBrush(Color.Green))
{
@@ -127,8 +127,8 @@ namespace FontTest
{
using (var brush = new SolidBrush(Color.FromArgb(100, 255, 0, 0)))
{
g.FillRectangle(brush, new Rectangle(0, ry, size, 1));
g.FillRectangle(brush, new Rectangle(0, ry + rheight, size, 1));
g.Fill(brush, new Rectangle(0, ry, size, 1));
g.Fill(brush, new Rectangle(0, ry + rheight, size, 1));
}
oy = xc;
using (var brush = new SolidBrush(Color.FromArgb(40, 255, 0, 0)))
@@ -144,7 +144,7 @@ namespace FontTest
#endregion
g.DrawString(font.Name, font_min, r ? Brushes.Green : Brushes.Black, 1, 1);
g.String(font.Name, font_min, r ? Brushes.Green : Brushes.Black, 1, 1);
}
return bmp;
}