PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Dec 17, 2018 4:46 am

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
PostPosted: Thu Oct 25, 2018 5:07 pm 
Offline

Joined: Sat Oct 06, 2018 6:56 pm
Posts: 1
Hi, can anybody help? I am using PDFSharp 1.32 with WPF

How to draw gradient lines with specific line thickness(pen size) in PDFSharp? DrawPath use XLinearGradientBrush but will not give option of Pen size, wish DrawPath can be used like XPen

xPen = new XPen(xColor, penSize);
XGraphic.DrawLine(xPen, x1, y1, x2, y2);

However, DrawLine can not draw gradient lines, so I have to use XLinearGradientBrush and DrawPath, but there is no option of pen size.

Please help!


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 9 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