|
|
|
@ -17,8 +17,8 @@ namespace Avalonia.Direct2D1.RenderTests.Media |
|
|
|
{ |
|
|
|
private readonly IBrush? _brush; |
|
|
|
private readonly bool _shadow; |
|
|
|
private readonly IPen _line; |
|
|
|
private static readonly Geometry s_Geometry = Geometry.Parse("m 80 200 c 40 20 150 -40 160 0 l 0 30 c -40 -30 -160 10 -160 -30 z"); |
|
|
|
private readonly IPen? _line; |
|
|
|
private static readonly Geometry s_geometry = Geometry.Parse("m 80 200 c 40 20 150 -40 160 0 l 0 30 c -40 -30 -160 10 -160 -30 z"); |
|
|
|
|
|
|
|
public RelativePointTestPrimitivesHelper(IBrush? brush, bool shadow = false) |
|
|
|
{ |
|
|
|
@ -42,8 +42,9 @@ namespace Avalonia.Direct2D1.RenderTests.Media |
|
|
|
|
|
|
|
context.DrawRectangle(_brush, null, new Rect(20, 20, 200, 60)); |
|
|
|
context.DrawEllipse(_brush, null, new Rect(40, 100, 200, 20)); |
|
|
|
context.DrawLine(_line, new Point(60, 140), new Point(240, 160)); |
|
|
|
context.DrawGeometry(_brush, null, s_Geometry); |
|
|
|
if (_line is not null) |
|
|
|
context.DrawLine(_line, new Point(60, 140), new Point(240, 160)); |
|
|
|
context.DrawGeometry(_brush, null, s_geometry); |
|
|
|
|
|
|
|
base.Render(context); |
|
|
|
} |
|
|
|
|