The OpenD Programming Language

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)
    class Widget
    int
    scaleWithDpi
    (
    int value
    ,
    int assumedDpi = 96
    )
  2. Point scaleWithDpi(Point value, int assumedDpi)

Meta

History

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