logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Bazi  
#1 Posted : Saturday, November 30, 2019 8:57:25 AM(UTC)
Bazi

Rank: Member

Groups: Registered
Joined: 9/19/2019(UTC)
Posts: 18
Germany
Location: Landshut

Thanks: 1 times
Hi,
with this code i insert Lines to a Page:
Code:
 Private Function InsertLine(ByVal fig As PlanMassDataSet.FigureRow) As Patagames.Pdf.Net.PdfPathObject
        Dim fillFS_Color As New Patagames.Pdf.FS_COLOR(fig.FigureStyleRow.LineColor)
        Dim pts = fig.GetPointRows
        Dim pathObject As Patagames.Pdf.Net.PdfPathObject = Patagames.Pdf.Net.PdfPathObject.Create(Patagames.Pdf.Enums.FillModes.Alternate, False)
        pathObject.FillColor = fillFS_Color
        pathObject.Path.Add(New Patagames.Pdf.FS_PATHPOINTF(CSng(pts(0).X), CSng(pts(0).Y), Patagames.Pdf.Enums.PathPointFlags.MoveTo))
        pathObject.Path.Add(New Patagames.Pdf.FS_PATHPOINTF(CSng(pts(1).X), CSng(pts(1).Y), Patagames.Pdf.Enums.PathPointFlags.LineTo))
        pathObject.Path.Add(New Patagames.Pdf.FS_PATHPOINTF(CSng(pts(0).X), CSng(pts(0).Y), Patagames.Pdf.Enums.PathPointFlags.CloseFigure Or Patagames.Pdf.Enums.PathPointFlags.LineTo))
        Return pathObject
    End Function

I can not find any property to set the linewidth for these Linses.

How can i do that?

Christian

Edited by user Saturday, November 30, 2019 10:03:43 AM(UTC)  | Reason: Not specified

Paul Rayman  
#2 Posted : Sunday, December 1, 2019 10:27:45 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 844

Thanks: 2 times
Was thanked: 103 time(s) in 101 post(s)
Code:
Pdfium.FPDFPageObj_SetLineWidth(pathObect.Handle, width);
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.