PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 10, 2024 7:23 pm

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: Mon Aug 22, 2022 1:02 pm 
Offline

Joined: Wed Jan 27, 2021 2:16 pm
Posts: 1
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.

Code:
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);


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: Google [Bot] and 20 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