Skip to content

DisplayDpi(int, int, double, double) constructor

Defined in

Type: DisplayDpi Namespace: CrissCross.WPF.UI.Hardware Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Overloads

  • 1. public DisplayDpi(int DpiX, int DpiY, double DpiScaleX, double DpiScaleY)
  • 2. public DisplayDpi(double dpiScaleX, double dpiScaleY)
  • 3. public DisplayDpi(int dpiX, int dpiY)

1. Overload

public DisplayDpi(int DpiX, int DpiY, double DpiScaleX, double DpiScaleY)

Summary: Stores DPI information from which a Visual or UIElement is rendered.

Parameters

NameTypeDescription
DpiXintGets the DPI on the X axis.
DpiYintGets the DPI on the Y axis.
DpiScaleXdoubleGets the DPI scale on the X axis.
DpiScaleYdoubleGets the DPI scale on the Y axis.

2. Overload

public DisplayDpi(double dpiScaleX, double dpiScaleY)

Summary: Initializes a new instance of the DisplayDpi structure.

Parameters

NameTypeDescription
dpiScaleXdoubleThe DPI scale on the X axis.
dpiScaleYdoubleThe DPI scale on the Y axis.

3. Overload

public DisplayDpi(int dpiX, int dpiY)

Summary: Initializes a new instance of the DisplayDpi structure.

Parameters

NameTypeDescription
dpiXintThe DPI on the X axis.
dpiYintThe DPI on the Y axis.