Skip to content

Conversation

@JimBobSquarePants
Copy link
Member

@JimBobSquarePants JimBobSquarePants commented Jan 8, 2025

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

RecolorBrush didn't take transforms into consideration. I've not added an explicit test but here's the output from the samples project. Fixes #348

wrapped

@JimBobSquarePants JimBobSquarePants added the bug Something isn't working label Jan 8, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • ImageSharp.Drawing.sln: Language not supported

Span<float> amounts = this.blenderBuffers.AmountSpan[..scanline.Length];
Span<TPixel> overlays = this.blenderBuffers.OverlaySpan[..scanline.Length];

int width = this.Target.Width;
Copy link

Copilot AI Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable 'width' is declared but not used. It should be removed to avoid confusion.

Suggested change
int width = this.Target.Width;
// int width = this.Target.Width;

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly correct. It's best to delete than comment out.

@JimBobSquarePants JimBobSquarePants merged commit 435aae4 into main Jan 8, 2025
8 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/issue-348 branch January 8, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error demo:Sample-DrawWaterMarkOnImage-LongText

2 participants