get_dimensions


Description:

[ Version ( deprecated = true , deprecated_since = "2.52." , since = "2.14" ) ]
public DimensionData get_dimensions ()

Warning: get_dimensions is deprecated since 2.52..

Get the SVG's size.

Note:

Use [method@Rsvg.Handle.get_intrinsic_size_in_pixels] instead. This function is deprecated because it is not able to return exact fractional dimensions, only integer pixels.

Do not call from within the size_func callback, because an infinite loop will occur.

This function depends on the [class@Rsvg.Handle]'s DPI to compute dimensions in pixels, so you should call [method@Rsvg.Handle.set_dpi] beforehand.

Parameters:

this

A [class@Rsvg.Handle]

dimension_data

A place to store the SVG's size