Rank: Newbie
Groups: Registered
Joined: 11/6/2023(UTC) Posts: 2 
|
can someone give an example!
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Hi! Code:
var page = pdfViewer1.CurrentPage;
float x1, y1, x2, y2;
x1 = 100; y1 = 400;
x2 = 400; y2 = 300;
var line = PdfPathObject.Create(FillModes.None, true);
line.Path.Add(new FS_PATHPOINTF(x1, y1, PathPointFlags.MoveTo));
line.Path.Add(new FS_PATHPOINTF(x2, y2, PathPointFlags.LineTo));
float[] dash = { 10, 5, 2, 5 };
line.LineWidth = 3.0f;
line.StrokeColor = FS_COLOR.Red;
line.SetDashArray(dash);
page.PageObjects.Add(line);
page.GenerateContent();
page.ReloadPage();
pdfViewer1.Invalidate();
|
|
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close