PathF.Bounds returns too big boxes #15151
Labels
area-drawing
Shapes, Borders, Shadows, Graphics, BoxView, custom drawing
platform/windows
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Creating an oval using PathF and then requesting a Bounding Box for it leads to a far too big box.
See "Steps to Reproduce" for details.
Steps to Reproduce
The following code shows the problem.
The result of running it is:
{X=-1.783905 Y=-1.783905 Width=201.77824 Height=201.7839}
{X=0.0015447102 Y=0.0049879625 Width=1089.3208 Height=1205.8179}
{X=-381.5282 Y=-575.8281 Width=1470.8506 Height=1781.651}
the first one is a bit off but still acceptable while I would expect the last 2 to be in the limits:
{X=0 Y=0 Width=444 Height=648}
Downgrading to 7.0.86 or 6.0.501 doesn't change the outcome.
Drawing the PathF for the parameters of path3 looks like this:

Link to public reproduction project repository
https://github.com/RawScape/PathFBug
Version with bug
7.0.49
Last version that worked well
6.0
Affected platforms
Windows
Affected platform versions
Windows 11 Pro 22H2 22621.1702 / net7.0
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: