Skip to content

Commit a7eaa1b

Browse files
Update src/ImageSharp.Drawing/Processing/Processors/Drawing/ClipPathProcessor{TPixel}.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ce84fce commit a7eaa1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ImageSharp.Drawing/Processing/Processors/Drawing/ClipPathProcessor{TPixel}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public void Execute()
5858

5959
// Use the clone as a brush source so only the clipped result contributes to the fill,
6060
// keeping the effect confined to the clipped region.
61-
Point offsetP = new(
61+
Point brushOffset = new(
6262
clipped.X - (int)MathF.Floor(boundsF.Left),
6363
clipped.Y - (int)MathF.Floor(boundsF.Top));
6464

65-
ImageBrush brush = new(clone, clone.Bounds, offsetP);
65+
ImageBrush brush = new(clone, clone.Bounds, brushOffset);
6666

6767
// Fill the shape using the image brush.
6868
FillPathProcessor processor = new(this.definition.Options, brush, this.definition.Region);

0 commit comments

Comments
 (0)