Gimp.Vectors.export_to_string
function export_to_string(image: Gimp.Image, vectors: Gimp.Vectors): String {
// Gjs wrapper for gimp_vectors_export_to_string()
}
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.
Since 2.6
- image
The image.
- vectors
The vectors object to save, or 0 for all in the image.
- Returns
A string whose contents are a complete SVG document. The returned value must be freed with g_free().