SVG icon indicating copy to clipboard operation
SVG copied to clipboard

Bounds are calculated incorrectly

Open the-programmer opened this issue 3 years ago • 0 comments

Description

With the following SVG lightbulb-on the bounds seem incorrect. If I open the SVG in the SvgViewer and request the bounds via svgDoc.Bounds I get the following.

{X = -1 Y = -1 Width = 26 Height = 26}

However if I open the path in an SVG editor it seems the height and width are 22 x 22 and the offset is 1 x 1.

Used Versions

I am at commit a7fb9992f1e439e32614d67b1fad837e9729c50e on Windows 10. If I run RuntimeInformation.FrameworkDescription (more info) in the code I get .NET Framework 4.8.4515.0

the-programmer avatar Oct 11 '22 14:10 the-programmer