set_default_dpi_x_y


Description:


[ Version ( deprecated = true , deprecated_since = "2.42.3" , since = "2.8" ) ]
public void set_default_dpi_x_y (double dpi_x, double dpi_y)

Warning: set_default_dpi_x_y is deprecated since 2.42.3.

Do not use this function.

Note:

This function used to set a global default DPI. However, it only worked if it was called before any [class@Rsvg.Handle] objects had been created; it would not work after that. To avoid global mutable state, please use [method@Rsvg.Handle.set_dpi] instead.

Create an [class@Rsvg.Handle] and call [method@Rsvg.Handle.set_dpi_x_y] on it instead.

Parameters:

dpi_x

Dots Per Inch (aka Pixels Per Inch)

dpi_y

Dots Per Inch (aka Pixels Per Inch)


Namespace: Rsvg
Package: librsvg-2.0