PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 9:42 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Bug with AddArc
PostPosted: Sun Oct 16, 2022 1:13 pm 
Offline

Joined: Fri Sep 16, 2022 7:37 am
Posts: 3
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 12638 times ]
File comment: Wrong circle
wrongCircle.PNG
wrongCircle.PNG [ 2.39 KiB | Viewed 12638 times ]
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group