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:
- IG_PDE_MOVE_TO: x1, y1
- IG_PDE_LINE_TO: x1, y1
- IG_PDE_CURVE_TO: x1, y1, x2, y2, x3, y3
- IG_PDE_CURVE_TO_V: x1, y1, x2, y2
- IG_PDE_CURVE_TO_Y: x1, y1, x2, y2
- IG_PDE_RECT: x1, y1, x2 (width), y2 (height)
- IG_PDE_CLOSE_PATH: None