You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The foregroundRectangle.Width is adjusted by the background location X value if it was negative. This is resulting in cropping off the right side of the top image, not the left. Same for the Y direction just below that.
I created a test project to demonstrate the difference to make sure I wasn't going crazy, but here is an illustration:
Above: 3.0.2 behavior. The top/left of the top image is lost (expected due to negative coordinates).
Above: what I believe the code in 3.1 is intended to do. The output would remain the same. I believe adjusting the rectangle's X an Y (in addition to removing it from the Width and Height) could have this effect. I am not an expert at what's happening below there, though, so I could be wrong.
Above: what is actually happening. The top image is indeed painted in the same box, but it originates from the top left corner and cuts off the bottom/right of the image instead of the top/left.
We incorrectly calculate the updated area of interest of the foreground image when applying a negative offset to the background drawing location.
The text was updated successfully, but these errors were encountered: