GimpVectors-export

GimpVectors-export

Synopsis

gboolean            gimp_vectors_export_file            (const GimpImage *image,
                                                         const GimpVectors *vectors,
                                                         const gchar *filename,
                                                         GError **error);
gchar *             gimp_vectors_export_string          (const GimpImage *image,
                                                         const GimpVectors *vectors);

Description

Details

gimp_vectors_export_file ()

gboolean            gimp_vectors_export_file            (const GimpImage *image,
                                                         const GimpVectors *vectors,
                                                         const gchar *filename,
                                                         GError **error);

Exports one or more vectors to a SVG file.

image :

the GimpImage from which to export vectors

vectors :

a GimpVectors object or NULL to export all vectors in image

filename :

the name of the file to write

error :

return location for errors

Returns :

TRUE on success, FALSE if there was an error writing the file

gimp_vectors_export_string ()

gchar *             gimp_vectors_export_string          (const GimpImage *image,
                                                         const GimpVectors *vectors);

Exports one or more vectors to a SVG string.

image :

the GimpImage from which to export vectors

vectors :

a GimpVectors object or NULL to export all vectors in image

Returns :

a NUL-terminated string that holds a complete XML document