Function

GimpVectorsexport_to_string

since: 2.6

Declaration [src]

gchar*
gimp_vectors_export_to_string (
  GimpImage* image,
  GimpVectors* vectors
)

Description [src]

Save a path as an SVG string.

This procedure works like gimp_vectors_export_to_file() but creates a string rather than a file. The contents are a NUL-terminated string that holds a complete XML document. If you pass 0 as the ‘vectors’ argument, then all paths in the image will be exported.

Available since: 2.6

Parameters

image

Type: GimpImage

The image.

The data is owned by the caller of the function.
vectors

Type: GimpVectors

The vectors object to save, or 0 for all in the image.

The data is owned by the caller of the function.

Return value

Type: gchar*

     A string whose contents are a complete SVG document.
     The returned value must be freed with g_free().

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.