Function

Rsvg-2.0Rsvgset_default_dpi_x_yDeprecated 2.42.3Since 2.8

  • Do not use this function. Create an Rsvg.Handle and call Rsvg.Handle.set_dpi_x_y on it instead.

    Parameters

    • Deprecateddpi_x: number

      Dots Per Inch (aka Pixels Per Inch)

    • Deprecateddpi_y: number

      Dots Per Inch (aka Pixels Per Inch)

    Returns void

    2.8

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