Handle.getPixbufSub

Returns the pixbuf loaded by @handle. The pixbuf returned will be reffed, so the caller of this function must assume that ref. If insufficient data has been read to create the pixbuf, or an error occurred in loading, then %NULL will be returned. Note that the pixbuf may not be complete until @rsvg_handle_close has been called.

class Handle
getPixbufSub
(
string id
)

Parameters

id string

The id of an element inside the SVG, or %NULL to render the whole SVG. For example, if you have a layer called "layer1" that you wish to render, pass "##layer1" as the id.

Return Value

Type: Pixbuf

the pixbuf loaded by @handle, or %NULL.

Meta

Since

2.14