ImageGear for C and C++ on Windows v20.0 - Updated
IG_PDE_path_add_segment
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_PATH > IG_PDE_path_add_segment

Adds a segment to a path.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_path_add_segment(
        HIG_PDE_PATH hPath,
        LONG nSegType, 
        AT_PDF_FIXED x1, 
        AT_PDF_FIXED y1,
        AT_PDF_FIXED x2, 
        AT_PDF_FIXED y2, 
        AT_PDF_FIXED x3, 
        AT_PDF_FIXED y3 
);

Arguments:

Name Type Description
hPath HIG_PDE_PATH The path to which a segment is added.
nSegType LONG A enumIGPDEPathElementType value indicating the type of path to add.
x1 AT_PDF_FIXED x-coordinate of first point.
y1 AT_PDF_FIXED y-coordinate of first point.
x2 AT_PDF_FIXED x-coordinate of second point.
y2 AT_PDF_FIXED y-coordinate of second point.
x3 AT_PDF_FIXED x-coordinate of third point.
y3 AT_PDF_FIXED y-coordinate of third point.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

The number of AT_PDF_FIXED values used depends upon nSegType:

Is this page helpful?
Yes No
Thanks for your feedback.