Dong Bin
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
13 additions and
0 deletions
-
src/Avalonia.Base/Media/ImmediateDrawingContext.cs
|
|
|
@ -179,6 +179,19 @@ namespace Avalonia.Media |
|
|
|
|
|
|
|
PlatformImpl.DrawEllipse(brush, pen, new Rect(originX, originY, width, height)); |
|
|
|
} |
|
|
|
|
|
|
|
public void DrawGeometry(IImmutableBrush? brush, ImmutablePen? pen, Geometry geometry) |
|
|
|
{ |
|
|
|
if (brush == null && !PenIsVisible(pen)) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
if (geometry.PlatformImpl is null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
PlatformImpl.DrawGeometry(brush, pen, geometry.PlatformImpl); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Draws a glyph run.
|
|
|
|
|