Returns a new rsvg handle.
Must be freed with [[email protected]]. This handle can be used to load an image.
The preferred way of loading SVG data into the returned [[email protected]] is with [[email protected]_stream_sync].
The deprecated way of loading SVG data is with [[email protected]] and [[email protected]]; note that these require buffering the entire file internally, and for this reason it is better to use the stream functions: [[email protected]_from_stream_sync ], [[email protected]_stream_sync], or [[email protected]_from_gfile_sync].
After loading the [[email protected]] with data, you can render it using Cairo or get a GdkPixbuf from it. When finished, free the handle with [[email protected]]. No more than one image can be loaded with one handle.
Note that this function creates an [[email protected]] with no flags set. If you require any of [[email protected]] to be set, use any of [[email protected]_with_flags], [[email protected]_from_stream_sync], or [[email protected]_from_gfile_sync].
A new [[email protected]] with no flags set. |