ImageGear v26.5 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF Namespace / ImGearPDEPath Class / AddSegment Method
An ImGearPDEPathElementType value indicating the type of path to add.
X-coordinate of first point.
Y-coordinate of first point.
X-coordinate of second point.
Y-coordinate of second point.
X-coordinate of third point.
Y-coordinate of third point.




In This Topic
    AddSegment Method
    In This Topic
    Adds a segment to a path.
    Syntax
    'Declaration
     
    Public Sub AddSegment( _
       ByVal segmentType As ImGearPDEPathElementType, _
       ByVal point1X As Integer, _
       ByVal point1Y As Integer, _
       ByVal point2X As Integer, _
       ByVal point2Y As Integer, _
       ByVal point3X As Integer, _
       ByVal point3Y As Integer _
    ) 
    'Usage
     
    Dim instance As ImGearPDEPath
    Dim segmentType As ImGearPDEPathElementType
    Dim point1X As Integer
    Dim point1Y As Integer
    Dim point2X As Integer
    Dim point2Y As Integer
    Dim point3X As Integer
    Dim point3Y As Integer
     
    instance.AddSegment(segmentType, point1X, point1Y, point2X, point2Y, point3X, point3Y)
    public void AddSegment( 
       ImGearPDEPathElementType segmentType,
       int point1X,
       int point1Y,
       int point2X,
       int point2Y,
       int point3X,
       int point3Y
    )
    public: void AddSegment( 
       ImGearPDEPathElementType segmentType,
       int point1X,
       int point1Y,
       int point2X,
       int point2Y,
       int point3X,
       int point3Y
    ) 
    public:
    void AddSegment( 
       ImGearPDEPathElementType segmentType,
       int point1X,
       int point1Y,
       int point2X,
       int point2Y,
       int point3X,
       int point3Y
    ) 

    Parameters

    segmentType
    An ImGearPDEPathElementType value indicating the type of path to add.
    point1X
    X-coordinate of first point.
    point1Y
    Y-coordinate of first point.
    point2X
    X-coordinate of second point.
    point2Y
    Y-coordinate of second point.
    point3X
    X-coordinate of third point.
    point3Y
    Y-coordinate of third point.
    Remarks
    The number of values used depends upon segmentType:
    • MOVE_TO: point1X, point1Y
    • LINE_TO: point1X, point1Y
    • CURVE_TO: point1X, point1Y, point2X, point2Y, point3X, point3Y
    • CURVE_TO_V: point1X, point1Y, point2X, point2Y
    • CURVE_TO_Y: point1X, point1Y, point2X, point2Y
    • RECT: point1X, point1Y, point2X (width), point2Y (height)
    • CLOSE_PATH: None
    See Also