Table of Contents

Struct DisplayDpi

Namespace
Wpf.Ui.Hardware
Assembly
Wpf.Ui.dll

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

public readonly struct DisplayDpi
Inherited Members

Constructors

DisplayDpi(double, double)

Initializes a new instance of the DisplayDpi structure.

public DisplayDpi(double dpiScaleX, double dpiScaleY)

Parameters

dpiScaleX double

The DPI scale on the X axis.

dpiScaleY double

The DPI scale on the Y axis.

DisplayDpi(int, int)

Initializes a new instance of the DisplayDpi structure.

public DisplayDpi(int dpiX, int dpiY)

Parameters

dpiX int

The DPI on the X axis.

dpiY int

The DPI on the Y axis.

Properties

DpiScaleX

Gets the DPI scale on the X axis.

public double DpiScaleX { get; }

Property Value

double

DpiScaleY

Gets the DPI scale on the Y axis.

public double DpiScaleY { get; }

Property Value

double

DpiX

Gets the DPI on the X axis.

public int DpiX { get; }

Property Value

int

DpiY

Gets the DPI on the Y axis.

public int DpiY { get; }

Property Value

int