Handle.getDimensionsSub

Get the size of a subelement of the SVG file. Do not call from within the size_func callback, because an infinite loop will occur.

This function depends on the #RsvgHandle's DPI to compute dimensions in pixels, so you should call rsvg_handle_set_dpi() beforehand.

Element IDs should look like an URL fragment identifier; for example, pass "##foo" (hash <literal>foo</literal>) to get the geometry of the element that has an <literal>id="foo"</literal> attribute.

More...
class Handle
bool
getDimensionsSub

Parameters

dimensionData RsvgDimensionData

A place to store the SVG's size

id string

An element's id within the SVG, starting with "##" (a single hash character), for example, "##layer1". This notation corresponds to a URL's fragment ID. Alternatively, pass %NULL to use the whole SVG.

Detailed Description

Deprecated: Use rsvg_handle_get_geometry_for_layer() instead.

Meta

Since

2.22