## gimpvectors

gimpvectors

## Functions

gint32 | gimp_vectors_new ()
gint32 | gimp_vectors_new_from_text_layer ()
gint32 | gimp_vectors_copy ()
gboolean | gimp_vectors_is_valid ()
gint * | gimp_vectors_get_strokes ()
gint32 | gimp_vectors_get_image ()
gchar * | gimp_vectors_get_name ()
gboolean | gimp_vectors_set_name ()
gboolean | gimp_vectors_get_visible ()
gboolean | gimp_vectors_set_visible ()
gboolean | gimp_vectors_get_linked ()
gboolean | gimp_vectors_set_linked ()
gint | gimp_vectors_get_tattoo ()
gboolean | gimp_vectors_set_tattoo ()
gboolean | gimp_vectors_remove_stroke ()
gboolean | gimp_vectors_to_selection ()
gboolean | gimp_vectors_export_to_file ()
gchar * | gimp_vectors_export_to_string ()
gboolean | gimp_vectors_import_from_file ()
gboolean | gimp_vectors_import_from_string ()
gboolean | gimp_vectors_parasite_attach ()
gboolean | gimp_vectors_parasite_detach ()
GimpParasite * | gimp_vectors_parasite_find ()
gboolean | gimp_vectors_parasite_list ()
gint | gimp_vectors_stroke_new_from_points ()
gboolean | gimp_vectors_stroke_close ()
gdouble | gimp_vectors_stroke_get_length ()
GimpVectorsStrokeType | gimp_vectors_stroke_get_points ()
gboolean | gimp_vectors_stroke_get_point_at_dist ()
gdouble * | gimp_vectors_stroke_interpolate ()
gboolean | gimp_vectors_stroke_scale ()
gboolean | gimp_vectors_stroke_translate ()
gboolean | gimp_vectors_stroke_flip ()
gboolean | gimp_vectors_stroke_flip_free ()
gboolean | gimp_vectors_stroke_rotate ()
gboolean | gimp_vectors_bezier_stroke_conicto ()
gboolean | gimp_vectors_bezier_stroke_cubicto ()
gboolean | gimp_vectors_bezier_stroke_lineto ()
gint | gimp_vectors_bezier_stroke_new_ellipse ()
gint | gimp_vectors_bezier_stroke_new_moveto ()

## Description

## Functions

### gimp_vectors_new ()

    gint32
    gimp_vectors_new (gint32 image_ID,
                      const gchar *name);

Since: GIMP 2.4

### gimp_vectors_new_from_text_layer ()

    gint32
    gimp_vectors_new_from_text_layer (gint32 image_ID,
                                      gint32 layer_ID);

Since: GIMP 2.6

### gimp_vectors_copy ()

    gint32
    gimp_vectors_copy (gint32 vectors_ID);

Since: GIMP 2.6

### gimp_vectors_is_valid ()

    gboolean
    gimp_vectors_is_valid (gint32 vectors_ID);

`gimp_vectors_is_valid` is deprecated and should not be used in newly-written code.

Use `gimp_item_is_valid()` instead.

Since: GIMP 2.4

### gimp_vectors_get_strokes ()

    gint *
    gimp_vectors_get_strokes (gint32 vectors_ID,
                              gint *num_strokes);

Since: GIMP 2.4

### gimp_vectors_get_image ()

    gint32
    gimp_vectors_get_image (gint32 vectors_ID);

`gimp_vectors_get_image` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_image()` instead.

Since: GIMP 2.4

### gimp_vectors_get_name ()

    gchar *
    gimp_vectors_get_name (gint32 vectors_ID);

`gimp_vectors_get_name` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_name()` instead.

Since: GIMP 2.4

### gimp_vectors_set_name ()

    gboolean
    gimp_vectors_set_name (gint32 vectors_ID,
                           const gchar *name);

`gimp_vectors_set_name` is deprecated and should not be used in newly-written code.

Use `gimp_item_set_name()` instead.

Since: GIMP 2.4

### gimp_vectors_get_visible ()

    gboolean
    gimp_vectors_get_visible (gint32 vectors_ID);

`gimp_vectors_get_visible` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_visible()` instead.

Since: GIMP 2.4

### gimp_vectors_set_visible ()

    gboolean
    gimp_vectors_set_visible (gint32 vectors_ID,
                              gboolean visible);

`gimp_vectors_set_visible` is deprecated and should not be used in newly-written code.

Use `gimp_item_set_visible()` instead.

Since: GIMP 2.4

### gimp_vectors_get_linked ()

    gboolean
    gimp_vectors_get_linked (gint32 vectors_ID);

`gimp_vectors_get_linked` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_linked()` instead.

Since: GIMP 2.4

### gimp_vectors_set_linked ()

    gboolean
    gimp_vectors_set_linked (gint32 vectors_ID,
                             gboolean linked);

`gimp_vectors_set_linked` is deprecated and should not be used in newly-written code.

Use `gimp_item_set_linked()` instead.

Since: GIMP 2.4

### gimp_vectors_get_tattoo ()

    gint
    gimp_vectors_get_tattoo (gint32 vectors_ID);

`gimp_vectors_get_tattoo` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_tattoo()` instead.

Since: GIMP 2.4

### gimp_vectors_set_tattoo ()

    gboolean
    gimp_vectors_set_tattoo (gint32 vectors_ID,
                             gint tattoo);

`gimp_vectors_set_tattoo` is deprecated and should not be used in newly-written code.

Use `gimp_item_set_tattoo()` instead.

Since: GIMP 2.4

### gimp_vectors_remove_stroke ()

    gboolean
    gimp_vectors_remove_stroke (gint32 vectors_ID,
                                gint stroke_id);

Since: GIMP 2.4

### gimp_vectors_to_selection ()

    gboolean
    gimp_vectors_to_selection (gint32 vectors_ID,
                               GimpChannelOps operation,
                               gboolean antialias,
                               gboolean feather,
                               gdouble feather_radius_x,
                               gdouble feather_radius_y);

`gimp_vectors_to_selection` is deprecated and should not be used in newly-written code.

Use `gimp_image_select_item()` instead.

Since: GIMP 2.4

### gimp_vectors_export_to_file ()

    gboolean
    gimp_vectors_export_to_file (gint32 image_ID,
                                 const gchar *filename,
                                 gint32 vectors_ID);

Since: GIMP 2.6

### gimp_vectors_export_to_string ()

    gchar *
    gimp_vectors_export_to_string (gint32 image_ID,
                                   gint32 vectors_ID);

Since: GIMP 2.6

### gimp_vectors_import_from_file ()

    gboolean
    gimp_vectors_import_from_file (gint32 image_ID,
                                   const gchar *filename,
                                   gboolean merge,
                                   gboolean scale,
                                   gint *num_vectors,
                                   gint32 **vectors_ids);

`gimp_vectors_import_from_file` is deprecated and should not be used in newly-written code.

Since: GIMP 2.4

### gimp_vectors_import_from_string ()

    gboolean
    gimp_vectors_import_from_string (gint32 image_ID,
                                     const gchar *string,
                                     gint length,
                                     gboolean merge,
                                     gboolean scale,
                                     gint *num_vectors,
                                     gint32 **vectors_ids);

Since: GIMP 2.4

### gimp_vectors_parasite_attach ()

    gboolean
    gimp_vectors_parasite_attach (gint32 vectors_ID,
                                  const GimpParasite *parasite);

`gimp_vectors_parasite_attach` is deprecated and should not be used in newly-written code.

Use `gimp_item_attach_parasite()` instead.

Since: GIMP 2.4

### gimp_vectors_parasite_detach ()

    gboolean
    gimp_vectors_parasite_detach (gint32 vectors_ID,
                                  const gchar *name);

`gimp_vectors_parasite_detach` is deprecated and should not be used in newly-written code.

Use `gimp_item_detach_parasite()` instead.

Since: GIMP 2.4

### gimp_vectors_parasite_find ()

    GimpParasite *
    gimp_vectors_parasite_find (gint32 vectors_ID,
                                const gchar *name);

`gimp_vectors_parasite_find` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_parasite()` instead.

Since: GIMP 2.4

### gimp_vectors_parasite_list ()

    gboolean
    gimp_vectors_parasite_list (gint32 vectors_ID,
                                gint *num_parasites,
                                gchar ***parasites);

`gimp_vectors_parasite_list` is deprecated and should not be used in newly-written code.

Use `gimp_item_get_parasite_list()` instead.

Since: GIMP 2.4

### gimp_vectors_stroke_new_from_points ()

    gint
    gimp_vectors_stroke_new_from_points (gint32 vectors_ID,
                                         GimpVectorsStrokeType type,
                                         gint num_points,
                                         const gdouble *controlpoints,
                                         gboolean closed);

Since: GIMP 2.4

### gimp_vectors_stroke_close ()

    gboolean
    gimp_vectors_stroke_close (gint32 vectors_ID,
                               gint stroke_id);

Since: GIMP 2.4

### gimp_vectors_stroke_get_length ()

    gdouble
    gimp_vectors_stroke_get_length (gint32 vectors_ID,
                                    gint stroke_id,
                                    gdouble precision);

Since: GIMP 2.4

### gimp_vectors_stroke_get_points ()

    GimpVectorsStrokeType
    gimp_vectors_stroke_get_points (gint32 vectors_ID,
                                    gint stroke_id,
                                    gint *num_points,
                                    gdouble **controlpoints,
                                    gboolean *closed);

Since: GIMP 2.4

### gimp_vectors_stroke_get_point_at_dist ()

    gboolean
    gimp_vectors_stroke_get_point_at_dist (gint32 vectors_ID,
                                           gint stroke_id,
                                           gdouble dist,
                                           gdouble precision,
                                           gdouble *x_point,
                                           gdouble *y_point,
                                           gdouble *slope,
                                           gboolean *valid);

Since: GIMP 2.4

### gimp_vectors_stroke_interpolate ()

    gdouble *
    gimp_vectors_stroke_interpolate (gint32 vectors_ID,
                                     gint stroke_id,
                                     gdouble precision,
                                     gint *num_coords,
                                     gboolean *closed);

Since: GIMP 2.4

### gimp_vectors_stroke_scale ()

    gboolean
    gimp_vectors_stroke_scale (gint32 vectors_ID,
                               gint stroke_id,
                               gdouble scale_x,
                               gdouble scale_y);

Since: GIMP 2.4

### gimp_vectors_stroke_translate ()

    gboolean
    gimp_vectors_stroke_translate (gint32 vectors_ID,
                                   gint stroke_id,
                                   gint off_x,
                                   gint off_y);

Since: GIMP 2.4

### gimp_vectors_stroke_flip ()

    gboolean
    gimp_vectors_stroke_flip (gint32 vectors_ID,
                              gint stroke_id,
                              GimpOrientationType flip_type,
                              gdouble axis);

Since: GIMP 2.4

### gimp_vectors_stroke_flip_free ()

    gboolean
    gimp_vectors_stroke_flip_free (gint32 vectors_ID,
                                   gint stroke_id,
                                   gdouble x1,
                                   gdouble y1,
                                   gdouble x2,
                                   gdouble y2);

Since: GIMP 2.4

### gimp_vectors_stroke_rotate ()

    gboolean
    gimp_vectors_stroke_rotate (gint32 vectors_ID,
                                gint stroke_id,
                                gdouble center_x,
                                gdouble center_y,
                                gdouble angle);

Since: GIMP 2.4

### gimp_vectors_bezier_stroke_conicto ()

    gboolean
    gimp_vectors_bezier_stroke_conicto (gint32 vectors_ID,
                                        gint stroke_id,
                                        gdouble x0,
                                        gdouble y0,
                                        gdouble x1,
                                        gdouble y1);

Since: GIMP 2.4

### gimp_vectors_bezier_stroke_cubicto ()

    gboolean
    gimp_vectors_bezier_stroke_cubicto (gint32 vectors_ID,
                                        gint stroke_id,
                                        gdouble x0,
                                        gdouble y0,
                                        gdouble x1,
                                        gdouble y1,
                                        gdouble x2,
                                        gdouble y2);

Since: GIMP 2.4

### gimp_vectors_bezier_stroke_lineto ()

    gboolean
    gimp_vectors_bezier_stroke_lineto (gint32 vectors_ID,
                                       gint stroke_id,
                                       gdouble x0,
                                       gdouble y0);

Since: GIMP 2.4

### gimp_vectors_bezier_stroke_new_ellipse ()

    gint
    gimp_vectors_bezier_stroke_new_ellipse
                                   (gint32 vectors_ID,
                                    gdouble x0,
                                    gdouble y0,
                                    gdouble radius_x,
                                    gdouble radius_y,
                                    gdouble angle);

Since: GIMP 2.4

### gimp_vectors_bezier_stroke_new_moveto ()

    gint
    gimp_vectors_bezier_stroke_new_moveto (gint32 vectors_ID,
                                           gdouble x0,
                                           gdouble y0);

Since: GIMP 2.4

## Types and Values