2006
Simon Budig
Adds a stroke of a given type to the vectors object.
Adds a stroke of a given type to the vectors object. The coordinates of the control points can be specified. For now only strokes of the type GIMP_VECTORS_STROKE_TYPE_BEZIER are supported. The control points are specified as a pair of float values for the x- and y-coordinate. The Bezier stroke type needs a multiple of three control points. Each Bezier segment endpoint (anchor, A) has two additional control points (C) associated. They are specified in the order CACCACCAC...
unknown
Type | Name | Description |
---|---|---|
unknown | vectors | The vectors object |
PF_INT | type | type of the stroke (always GIMP_VECTORS_STROKE_TYPE_BEZIER for now). { VECTORS-STROKE-TYPE-BEZIER (0) } |
PF_INT | num-points | The number of elements in the array, i.e. the number of controlpoints in the stroke * 2 (x- and y-coordinate). (num-points >= 0) |
unknown | controlpoints | List of the x- and y-coordinates of the control points. |
PF_INT | closed | Whether the stroke is to be closed or not. (TRUE or FALSE) |
Type | Name | Description |
---|---|---|
PF_INT | stroke-id | The stroke ID of the newly created stroke. |