![]() |
![]() |
![]() |
GIMP Library Reference Manual | ![]() |
---|
gimpvectorsgimpvectors — |
gint* gimp_vectors_get_strokes (gint32 vectors_ID, gint *num_strokes); gboolean gimp_vectors_stroke_interpolate (gint32 vectors_ID, gint stroke_id, gdouble prescision, gint *num_coords, gdouble **coords); gboolean gimp_vectors_stroke_remove (gint32 vectors_ID, gint stroke_id); gboolean gimp_vectors_stroke_translate (gint32 vectors_ID, gint stroke_id, gint offx, gint offy);
gint* gimp_vectors_get_strokes (gint32 vectors_ID, gint *num_strokes);
List the strokes associated with the passed path.
Returns an Array with the stroke-IDs associated with the passed path.
vectors_ID : |
The vectors object. |
num_strokes : |
The number of strokes returned. |
Returns : | List of the strokes belonging to the path. |
Since GIMP 2.4
gboolean gimp_vectors_stroke_interpolate (gint32 vectors_ID, gint stroke_id, gdouble prescision, gint *num_coords, gdouble **coords);
returns polygonal approximation of the stroke.
returns polygonal approximation of the stroke.
vectors_ID : |
The vectors object. |
stroke_id : |
The stroke ID. |
prescision : |
The prescision used for the approximation. |
num_coords : |
The number of floats returned. |
coords : |
List of the coords along the path (x0, y0, x1, y1, ...). |
Returns : | List of the strokes belonging to the path. |
Since GIMP 2.4
gboolean gimp_vectors_stroke_remove (gint32 vectors_ID, gint stroke_id);
return coordinates along the given stroke.
Returns a lot of coordinates along the passed stroke.
vectors_ID : |
The vectors object. |
stroke_id : |
The stroke ID. |
Returns : | TRUE on success. |
Since GIMP 2.4
gboolean gimp_vectors_stroke_translate (gint32 vectors_ID, gint stroke_id, gint offx, gint offy);
translate the given stroke.
Translate the given stroke.
vectors_ID : |
The vectors object. |
stroke_id : |
The stroke ID. |
offx : |
Offset in x direction. |
offy : |
Offset in y direction. |
Returns : | TRUE on success. |
Since GIMP 2.4
<< gimpundo | Data Objects >> |