Skip to content

Commit f2b090a

Browse files
committed
Add test from issue #928
1 parent 83890e6 commit f2b090a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,32 @@ public void DrawOffCanvas()
6969
}
7070
}
7171

72+
[Fact]
73+
public void DoesNotThrowForIssue928()
74+
{
75+
var rectText = new RectangleF(0, 0, 2000, 2000);
76+
using (Image<Rgba32> img = new Image<Rgba32>((int)rectText.Width, (int)rectText.Height))
77+
{
78+
img.Mutate(x => x.Fill(Rgba32.Transparent));
79+
80+
img.Mutate(ctx => {
81+
ctx.DrawLines(
82+
Rgba32.Red,
83+
0.984252f,
84+
new PointF(104.762581f, 1074.99365f),
85+
new PointF(104.758667f, 1075.01721f),
86+
new PointF(104.757675f, 1075.04114f),
87+
new PointF(104.759628f, 1075.065f),
88+
new PointF(104.764488f, 1075.08838f),
89+
new PointF(104.772186f, 1075.111f),
90+
new PointF(104.782608f, 1075.13245f),
91+
new PointF(104.782608f, 1075.13245f)
92+
);
93+
}
94+
);
95+
}
96+
}
97+
7298
[Fact]
7399
public void DoesNotThrowFillingTriangle()
74100
{

0 commit comments

Comments
 (0)