PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

LineCap in XPen
https://forum.pdfsharp.net/viewtopic.php?f=4&t=474
Page 1 of 1

Author:  joan [ Sat Sep 13, 2008 11:45 am ]
Post subject:  LineCap in XPen

Hi,

This may have been raised already but I couldn't find it...

I need to draw lines with arrows at the end.
In GDI+, I would use Pen.StartCap and Pen.EndCap, specifying LineCap.ArrowAnchor as a value.

I couldn't find a way to draw arrow lines in PdfSharp, XPen doesn't expose StartCap / EndCap and its LineCap property can only be flat/round or square.

Thank you !

Author:  Thomas Hoevel [ Mon Sep 15, 2008 12:33 pm ]
Post subject: 

Hello!

We don't use GDI+ when we create PDF files.
That's why XPen only offers a subset of the capabilities of GDI+ - the subset that is compatible with PDF.

StartCap/EndCap and certain options of LineCap would have to be handled by our own implementation to show in PDF.

There are no plans to implement StartCap/EndCap in the foreseeable future.
You can use Paths to draw lines with arrows at the end.

Author:  joan [ Tue Sep 16, 2008 12:34 pm ]
Post subject: 

Thank you.
I'll have a look at the Paths option you mention.

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