Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecolorBrush - Limit access to target dimensions #350

Merged
merged 2 commits into from
Jan 8, 2025

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 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


int width = this.Target.Width;
Copy link
Preview

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 is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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
1 participant