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

Draw gradient lines with thickness
http://forum.pdfsharp.com/viewtopic.php?f=2&t=3864
Page 1 of 1

Author:  realtimoft [ Thu Oct 25, 2018 5:07 pm ]
Post subject:  Draw gradient lines with thickness

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!

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