You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Creation > Low-level Functions > PdfDrawLine Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfDrawLine Method

Draws a line into the current page of a PDF.

C#
public PdfDrawLine(
    int PdfID, 
    Single DstX1, 
    Single DstY1, 
    Single DstX2, 
    Single DstY2, 
    Single BorderWidth, 
    Color PenColor
);
Visual Basic
Public Sub PdfDrawLine(
    ByVal PdfID As Integer, 
    ByVal DstX1 As Single, 
    ByVal DstY1 As Single, 
    ByVal DstX2 As Single, 
    ByVal DstY2 As Single, 
    ByVal BorderWidth As Single, 
    ByVal PenColor As Color
)
Parameters
Parameters 
Description 
PdfID 
A PDF identifier returned by the PdfNewPdf(), PdfOCRStart(), PdfOcrStartStream(), TwainPDFStart() or TwainPdfStartStream() function. 
DstX1 
The X source in current unit defined by the PdfSetMeasurementUnits() function.  
DstY1 
The Y source (from the bottom) in current unit defined by the PdfSetMeasurementUnits() function.  
DstX2 
The X destination in current unit defined by the PdfSetMeasurementUnits() function.  
DstY2 
The Y destination (from the bottom) in current unit defined by the PdfSetMe  
BorderWidth 
The with of the pen used to draw the line in point.  
PenColor 
Color Object. You can build a Color Object using the ARGB() function. Color used to draw the line.  
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.