Handle.from_file


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.14" ) ]
public Handle.from_file (string filename) throws Error

Loads the SVG specified by file_name.

Note that this function, like [ctor@Rsvg.Handle.new], does not specify any loading flags for the resulting handle. If you require the use of [ flags@Rsvg.HandleFlags], use [ctor@Rsvg.Handle.new_from_gfile_sync].

Parameters:

filename

The file name to load, or a URI.

Returns:

A [class@Rsvg.Handle] or `NULL` if an error occurs.