Closed CyrusJoudieh closed 4 years ago
I had a look at this and I also see the difference. Most notably when the oval is stretched - circles appear to match almost exactly. The more elongated, the more off.
SkiaSharp was never supposed to match, so that is why this is a low priority. Upon closer inspection, I would say that System.Drawing was wrong. I did a test from 0 degrees to 90 degrees and System.Drawing did not have right angles.
Closing this as SkiaSharp is not meant to exactly match System.Drawing, and it appears that SkiaSharp was more correct.
Description
Path -> DrawArc and SKRect seems not working as they should if compared to System.Drawing
Code
LinqPad File:
SkiaSharp.zip
SKIA
Expected Behavior
The sweepAngle of the Path.AddArc is sometime shorter/smaller or larger than the one in System.Drawing for example if set start angle at 90 with 45 sweepangle
The SkRect rectangle is smaller than the Rectangle in System.Drawing have to resize it manually such as rect.Size = new SKSize() { Height = rect.Size.Height + rect.Location.Y, Width = rect.Size.Width + rect.Location.X};
Actual
Not able to draw an Arc identical to the one in System.Drawing
Not able to draw a rectangle of the same size as in System.Drawing without resizing the SKRect with new SKSize
Basic Information
Screenshots
Reproduction Link