Gimp.Vectors.import_from_string
@accepts(Gimp.Image, unicode, int, bool, bool, int, [Gimp.Vectors])
@returns(bool)
def import_from_string(image, string, length, merge, scale, num_vectors, vectors):
# Python wrapper for gimp_vectors_import_from_string()
Import paths from an SVG string.
This procedure works like Gimp.Vectors.import_from_file but takes a string rather than reading the SVG from a file. This allows you to write scripts that generate SVG and feed it to GIMP.
Since 2.4
- image
The image.
- string
A string that must be a complete and valid SVG document.
- length
Number of bytes in string or -1 if the string is NULL terminated.
- merge
Merge paths into a single vectors object.
- scale
Scale the SVG to image dimensions.
- num_vectors
The number of newly created vectors.
- vectors
The list of newly created vectors.
- Returns