Handle.this

Creates a new #RsvgHandle for @stream.

This function sets the "base file" of the handle to be @base_file if provided. SVG elements like <literal>&lt;image&gt;</literal> which reference external resources will be resolved relative to the location of @base_file.

If @cancellable is not %NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in @error.

Parameters

inputStream InputStream

a #GInputStream

baseFile FileIF

a #GFile, or %NULL

flags RsvgHandleFlags

flags from #RsvgHandleFlags

cancellable Cancellable

a #GCancellable, or %NULL

Return Value

a new #RsvgHandle on success, or %NULL with @error filled in

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta

Since

2.32