Skip to content

Commit cf9ead4

Browse files
committed
update reference images as we now render +0.5 pixels over
1 parent fb7da4e commit cf9ead4

55 files changed

Lines changed: 7 additions & 7 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.

src/ImageSharp.Drawing/Primitives/ShapePath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class ShapePath : ShapeRegion
1616
/// <param name="shape">The shape.</param>
1717
/// <param name="pen">The pen to apply to the shape.</param>
1818
public ShapePath(IPath shape, IPen pen)
19-
: base(shape.GenerateOutline(pen.StrokeWidth, pen.StrokePattern, false, JointStyle.Square, EndCapStyle.Square))
19+
: base(shape.GenerateOutline(pen.StrokeWidth, pen.StrokePattern))
2020
{
2121
}
2222
}

src/ImageSharp.Drawing/Shapes/Outliner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<f
7575
{
7676
if (pattern.Length < 2)
7777
{
78-
return path.GenerateOutline(width, jointStyle: jointStyle, endCapStyle: patternSectionCapStyle);
78+
return path.GenerateOutline(width, jointStyle: jointStyle);
7979
}
8080

8181
JoinType style = Convert(jointStyle);
@@ -187,7 +187,7 @@ public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<f
187187
/// <param name="jointStyle">The style to render the joints.</param>
188188
/// <param name="endCapStyle">The style to render the end caps of open paths (ignored on closed paths).</param>
189189
/// <returns>A new path representing the outline.</returns>
190-
public static IPath GenerateOutline(this IPath path, float width, JointStyle jointStyle = JointStyle.Square, EndCapStyle endCapStyle = EndCapStyle.Butt)
190+
public static IPath GenerateOutline(this IPath path, float width, JointStyle jointStyle = JointStyle.Square, EndCapStyle endCapStyle = EndCapStyle.Square)
191191
{
192192
var offset = new ClipperOffset()
193193
{

0 commit comments

Comments
 (0)