Skip to content

Commit 882fae6

Browse files
committed
update ReferenceOutput
1 parent 46ca49f commit 882fae6

95 files changed

Lines changed: 22 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/ImageSharp.Drawing.Tests/Drawing/FillPolygonTests.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,28 @@ public void FillPolygon_Concave<TPixel>(TestImageProvider<TPixel> provider, bool
147147
appendPixelTypeToFileName: false);
148148
}
149149

150+
[Theory]
151+
[WithSolidFilledImages(64, 64, "Black", PixelTypes.Rgba32)]
152+
public void FillPolygon_StarCircle(TestImageProvider<Rgba32> provider)
153+
{
154+
EllipsePolygon circle = new EllipsePolygon(32, 32, 30);
155+
Star star = new Star(32, 32, 7, 10, 27);
156+
IPath shape = circle.Clip(star);
157+
158+
provider.RunValidatingProcessorTest(
159+
c =>
160+
{
161+
c.SetShapeOptions(new ShapeOptions()
162+
{
163+
OrientationHandling = OrientationHandling.KeepOriginal
164+
});
165+
c.Fill(Color.White, shape);
166+
},
167+
comparer: ImageComparer.TolerantPercentage(0.01f),
168+
appendSourceFileOrDescription: false,
169+
appendPixelTypeToFileName: false);
170+
}
171+
150172
[Theory]
151173
[WithSolidFilledImages(30, 30, "Black", PixelTypes.Rgba32)]
152174
public void FillPolygon_Reverse<TPixel>(TestImageProvider<TPixel> provider)
128 Bytes
3.28 KB
13 Bytes
18 Bytes
18 Bytes
-1.44 KB
-1.59 KB
396 Bytes
-1.46 KB

0 commit comments

Comments
 (0)