-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Ensure the negatively offset shapes are correctly offset the ImageBrush Texture during rendering. #309
Conversation
0fe678a
to
25fab5c
Compare
25fab5c
to
e7f368f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #309 +/- ##
===================================
Coverage 80% 80%
===================================
Files 97 97
Lines 4946 4960 +14
Branches 884 886 +2
===================================
+ Hits 3997 4011 +14
Misses 754 754
Partials 195 195
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
9c29271
to
9269ea9
Compare
/// The region of interest. | ||
/// This overrides any region used to initialize the brush applicator. | ||
/// </param> | ||
internal ImageBrush(Image image, RectangleF region) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the constructor internal again. Was that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, I had failed to update my working branch when I started the PR. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool!! 👏
Prerequisites
Description
This fixes up the fill with brush pipelines to ensure that the push gets the correct region its supposed to be filling, even if they are negatively offset.
It also exposes a new ImageBrush constructor overload to allow manually offsetting the texture independent to the drawn location. This is needed by the
Clip
processor as the texture its working with doesn't always line-up nicely when negative offsets are applied.resolves #308