Method
GimpImageimport_paths_from_string
since: 2.4
Declaration [src]
gboolean
gimp_image_import_paths_from_string (
GimpImage* image,
const gchar* string,
gint length,
gboolean merge,
gboolean scale,
gint* num_paths,
GimpPath*** path
)
Description [src]
Import paths from an SVG string.
This procedure works like 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.
Available since: 2.4
Parameters
string-
Type:
const gchar*A string that must be a complete and valid SVG document.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. length-
Type:
gintNumber of bytes in string or -1 if the string is NULL terminated.
merge-
Type:
gbooleanMerge paths into a single path object.
scale-
Type:
gbooleanScale the SVG to image dimensions.
num_paths-
Type:
gint*The number of newly created path.
The argument will be set by the function. path-
Type: An array of
GimpPath*The list of newly created path.
The argument will be set by the function. The length of the array is specified in the num_pathsargument.The caller of the method takes ownership of the returned data container, but not the data inside it.