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 [[email protected]_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 [[email protected]]'s DPI to compute dimensions in pixels, so you should call [[email protected]_dpi] beforehand.

Parameters:

this

A [[email protected]]

dimension_data

A place to store the SVG's size




2022 vala-language.org