PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Bug with AddArc
http://forum.pdfsharp.com/viewtopic.php?f=3&t=4398
Page 1 of 1

Author:  tia [ Sun Oct 16, 2022 1:13 pm ]
Post subject:  Bug with AddArc

Good morning to every one, I'm using teh nuget pdfsharp library 1.51.5185-beta into a c#-wpf project. i have found a problem to draw two easy arcs. In detail here the two arc added to the var path = new XGraphicPath():

path.AddArc(new XPoint(45,25), new XPoint(5,25), new XSize(20, 20), 0, false, true);
path.AddArc(new XPoint(5,25), new XPoint(45,25), new XSize(20, 20), 0, false, true);

The right result should be a perfect circle (see right circle picture attached) but the result i have obtained is two arcs on top of each other. (see wrong circle picture attached)

Can some one help me about it? is it a bug or am i missing something? It seems a problem just if the start/end points are aligned to X or Y axes.

Thanks a lot for your time.

Attachments:
File comment: Right circle
rightCircle.PNG
rightCircle.PNG [ 6.87 KiB | Viewed 44110 times ]
File comment: Wrong circle
wrongCircle.PNG
wrongCircle.PNG [ 2.39 KiB | Viewed 44110 times ]

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/