Widget.scaleWithDpi

Scales the given value to the system-reported DPI for the monitor on which the widget resides.

  1. int scaleWithDpi(int value, int assumedDpi)
  2. Point scaleWithDpi(Point value, int assumedDpi)
    class Widget
    Point
    scaleWithDpi
    (
    Point value
    ,
    int assumedDpi = 96
    )

Meta

History

Added November 25, 2021 (dub v10.5) Point overload added January 12, 2022 (dub v10.6)