Handle.newFromData

Loads the SVG specified by data. Note that this function creates an rsvg.handle.Handle without a base URL, and without any rsvg.types.HandleFlags. If you need these, use rsvg.handle.Handle.newFromStreamSync instead by creating a gio.memory_input_stream.MemoryInputStream from your data.

class Handle
static
newFromData
(
ubyte[] data
)

Parameters

data ubyte[]

The SVG data

Return Value

Type: rsvg.handle.Handle

A rsvg.handle.Handle or NULL if an error occurs.