[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.32" ) ]
public Handle.from_stream_sync (InputStream input_stream, File? base_file, HandleFlags flags, Cancellable? cancellable = null) throws Error
Creates a new [class@Rsvg.
Handle] for stream
.
This function sets the "base file" of the handle to be base_file
if provided. SVG elements like `<image>` 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 throws.
input_stream |
a `GInputStream` |
base_file |
a `GFile`, or `NULL` |
flags |
flags from [[email protected]] |
cancellable |
a `GCancellable`, or `NULL` |
a new [[email protected]] on success, or `NULL` with throws filled in |