Handle.renderCairoSub

Draws a subset of a loaded SVG handle to a Cairo context. Drawing will occur with respect to the @cr's current transformation: for example, if the @cr has a rotated current transformation matrix, the whole SVG will be rotated in the rendered version.

class Handle
bool
renderCairoSub
(,
string id
)

Parameters

cr Context

A Cairo renderer

id string

An element's id within 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: bool

%TRUE if drawing succeeded; %FALSE otherwise.

Meta

Since

2.14