import_paths_from_string


Description:

[ Version ( since = "2.4" ) ]
public bool import_paths_from_string (string string, int length, bool merge, bool scale, out (unowned Path)[] paths)

Import paths from an SVG string.

This procedure works like [method@Gimp.Image.import_paths_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.

Parameters:

this

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 path object.

scale

Scale the SVG to image dimensions.

paths

The list of newly created paths.

Returns:

TRUE on success.