|PDFsharp & MigraDoc Foundation
|Pdf Sharp: XDashStyle spacing between dash/dot in lines
|Page 1 of 1|
|Author:||sahango [ Mon Aug 22, 2022 1:02 pm ]|
|Post subject:||Pdf Sharp: XDashStyle spacing between dash/dot in lines|
This topic has been posted before. But since there is no answer, I opened topic again.
when I create a high-dimensional page the dashes seems very close together and look like a line.
How can I increase the spaces between the dashes/dots? I tried the below codes but it didn't work.
float scale = 2f;
XPen pen = new XPen(XColors.Black,0.1);
pen.DashPattern=pen.DashPattern.Select(x => x / scale).ToArray();
pen.DashStyle = XDashStyle.Dash;
gfx.DrawLine(pen, x1, y1, x2, y2);
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group