Skip to content

Commit d2c9665

Browse files
committed
优化根号的绘制
1 parent 3ab38a2 commit d2c9665

2 files changed

Lines changed: 247 additions & 190 deletions

File tree

Workbench/Wmf/SkiaWmfRenderer/src/SkiaWmfRenderer/Rendering/WmfRenderStatus.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using System.Text;
2+
23
using Oxage.Wmf;
4+
35
using SkiaSharp;
46

57
namespace SkiaWmfRenderer.Rendering;
@@ -17,6 +19,8 @@ class WmfRenderStatus : IDisposable
1719
public SKColor CurrentPenColor { get; set; } = SKColors.Empty;
1820
public float CurrentPenThickness { get; set; } = 0;
1921

22+
public SKColor CurrentFillColor { get; set; } = SKColor.Empty;
23+
2024
public float CurrentFontSize { get; set; }
2125

2226
public string? CurrentFontName { get; set; } = null;
@@ -70,6 +74,12 @@ public void UpdateSkiaStrokeStatus()
7074
Paint.Style = SKPaintStyle.Stroke;
7175
}
7276

77+
public void UpdateSkiaFillStatus()
78+
{
79+
Paint.Style = SKPaintStyle.Fill;
80+
Paint.Color = CurrentFillColor;
81+
}
82+
7383
public void Dispose()
7484
{
7585
Paint.Dispose();

0 commit comments

Comments
 (0)