GimpVectors-import

GimpVectors-import

Synopsis

gboolean            gimp_vectors_import_file            (GimpImage *image,
                                                         const gchar *filename,
                                                         gboolean merge,
                                                         gboolean scale,
                                                         GimpVectors *parent,
                                                         gint position,
                                                         GList **ret_vectors,
                                                         GError **error);
gboolean            gimp_vectors_import_buffer          (GimpImage *image,
                                                         const gchar *buffer,
                                                         gsize len,
                                                         gboolean merge,
                                                         gboolean scale,
                                                         GimpVectors *parent,
                                                         gint position,
                                                         GList **ret_vectors,
                                                         GError **error);

Description

Details

gimp_vectors_import_file ()

gboolean            gimp_vectors_import_file            (GimpImage *image,
                                                         const gchar *filename,
                                                         gboolean merge,
                                                         gboolean scale,
                                                         GimpVectors *parent,
                                                         gint position,
                                                         GList **ret_vectors,
                                                         GError **error);

Imports one or more paths and basic shapes from a SVG file.

image :

the GimpImage to add the paths to

filename :

name of a SVG file

merge :

should multiple paths be merged into a single GimpVectors object

scale :

should the SVG be scaled to fit the image dimensions

position :

position in the image's vectors stack where to add the vectors

error :

location to store possible errors

Returns :

TRUE on success, FALSE if an error occurred

gimp_vectors_import_buffer ()

gboolean            gimp_vectors_import_buffer          (GimpImage *image,
                                                         const gchar *buffer,
                                                         gsize len,
                                                         gboolean merge,
                                                         gboolean scale,
                                                         GimpVectors *parent,
                                                         gint position,
                                                         GList **ret_vectors,
                                                         GError **error);