#1 2017-05-16 20:25:04

vandrovnik
Member
From: Czech Republic
Registered: 2017-05-16
Posts: 4

Writing Arc

Hello,

I have created a procedure for writing Arc to PDF (it was unsupported in SynPdf.pas). I would like to contribute, but do not know how... Is there someone to who I could send my piece of code?

Kind regards,

Karel

Offline

#2 2017-05-17 07:16:18

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Writing Arc

Post it on pastebin, put the link here, and I will do the merge.

Or fork and make a pull request on https://github.com/synopse/SynPDF/

Offline

#3 2017-05-17 09:14:46

vandrovnik
Member
From: Czech Republic
Registered: 2017-05-16
Posts: 4

Re: Writing Arc

Thank you for your answer.

Procedure TPdfCanvas.Arc and some notes are here: https://pastebin.com/1qU1jkdM

Kind regards,

Karel

Offline

#4 2017-05-17 13:36:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Writing Arc

Sorry, but I don't understand...

Arc() is already supported in the current version of SynPDF...

No need to add your patch...

Offline

#5 2017-05-17 13:46:04

vandrovnik
Member
From: Czech Republic
Registered: 2017-05-16
Posts: 4

Re: Writing Arc

I did not look in "unstable" version, before I started to program it, sorry :-(

Then it is up to you, which version to use - my creates 1 to 4 cubic Bezier curves as needed (similar to .Circle implementation).

Offline

#6 2017-05-17 20:35:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Writing Arc

Thanks for sharing!

Offline

Board footer

Powered by FluxBB