Freigeben über


DpiAwareness Class

Definition

A static helper class that contains APIs for performing various DPI scaling and context switching operations.

public ref class DpiAwareness abstract sealed
public static class DpiAwareness
type DpiAwareness = class
Public Module DpiAwareness
Inheritance
DpiAwareness

Fields

DefaultLogicalDpi

Properties

IsPerMonitorAwarenessEnabled

Get whether or not Per-Monitor DPI awareness is enabled.

ProcessDpiAwarenessContext

Gets the process's DPI awareness context.

SystemDpiX

The x-coordinate (or horizontal) DPI of the system's primary display.

SystemDpiXScale

The x-coordinate (or horizontal) DPI scale of the system's primary display.

SystemDpiY

The y-coordinate (or vertical) DPI of the system's primary display.

SystemDpiYScale

The y-coordinate (or vertical) DPI scale of the system's primary display.

Methods

DeviceToLogicalPoint(Control, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(IntPtr, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(IntPtr, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(Visual, Point)

Converts a Point from device units to logical units.

DeviceToLogicalRect(Control, Rectangle)

Converts a Rectangle from device units to logical units.

DeviceToLogicalRect(Control)

Converts a ControlRectangle from device units to logical units.

DeviceToLogicalRect(IntPtr, Rect)

Converts a Rect from device units to logical units.

DeviceToLogicalRect(IntPtr, Rect)

Converts a window's bounding rectangle from device units to logical units.

DeviceToLogicalRect(IntPtr, Rectangle)

Converts a window's bounding rectangle from device units to logical units.

DeviceToLogicalRect(IntPtr, Rectangle)

Converts a Rectangle from device units to logical units.

DeviceToLogicalRect(Visual, Rect)

Converts a Rect from device units to logical units.

DeviceToLogicalRect(Window)

Converts a WindowRect from device units to logical units.

DeviceToLogicalSize(Control, Size)

Converts a Size from device units to logical units.

DeviceToLogicalSize(IntPtr, Size)

Converts a Size from device units to logical units.

DeviceToLogicalSize(IntPtr, Size)

Converts a Size from device units to logical units.

DeviceToLogicalSize(Visual, Size)

Converts a Size from device units to logical units.

DeviceToLogicalUnits(Control, Double)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, Int16)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, Int32)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, Int64)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, Single)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, UInt16)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, UInt32)

Converts an value from device units to logical units.

DeviceToLogicalUnits(Control, UInt64)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, Double)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, Int16)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, Int32)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, Int64)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, Single)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, UInt16)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, UInt32)

Converts an value from device units to logical units.

DeviceToLogicalUnits(IntPtr, UInt64)

Converts an value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Double)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Int16)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Int32)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Int64)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Single)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, UInt16)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, UInt32)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, UInt64)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Double)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Int16)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Int32)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Int64)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Single)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, UInt16)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, UInt32)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, UInt64)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalVector(IntPtr, Vector)

Converts a Vector from device units to logical units.

DeviceToLogicalVector(Visual, Vector)

Converts a Vector from device units to logical units.

EnterDpiScope(DpiAwarenessContext)

Enters a scope during which the current thread's DPI awareness context is set to awareness.

EnterDpiScope(IntPtr)

Enters a scope during which the current thread's DPI awareness context is set to match the DPI awareness context of the given hwnd.

GetDpi(Control)

Gets the DPI of the given Control.

GetDpiAwarenessContext(IntPtr)

Gets the DPI awareness context of the given window.

GetDpiScale(Control)

Gets the DPI scale of the given Control.

GetDpiX(Visual)

Gets the x-coordinate (or horizontal) DPI of the given Visual.

GetDpiXScale(Visual)

Gets the x-coordinate (or horizontal) DPI scale of the given Visual.

GetDpiY(Visual)

Gets the y-coordinate (or vertical) DPI of the given Visual.

GetDpiYScale(Visual)

Gets the y-coordinate (or vertical) DPI scale of the given Visual.

GetMonitorDpi(IntPtr, Double, Double)

Gets the DPI of the given monitor.

GetMonitorDpiScale(IntPtr, Double, Double)

Gets the DPI scale of the given monitor.

GetWindowDpi(IntPtr)

Gets the DPI of the given window.

GetWindowDpiScale(IntPtr)

Gets the DPI scale of the given window.

HookDpiChanged(HwndHost, RoutedEventHandler)

Hooks up the given callback to the given HwndHost.

HookDpiChanged(Image, RoutedEventHandler)

Hooks up the given callback to the given Image.

HookDpiChanged(Window, RoutedEventHandler)

Hooks up the given callback to the given Window.

LogicalToDevicePoint(Control, Point)

Converts a Point from logical units to device units.

LogicalToDevicePoint(IntPtr, Point)

Converts a Point from logical units to device units.

LogicalToDevicePoint(IntPtr, Point)

Converts a Point from logical units to device units.

LogicalToDevicePoint(Visual, Point)

Converts a Point from logical units to device units.

LogicalToDeviceRect(Control, Rectangle)

Converts a Rectangle from logical units to device units.

LogicalToDeviceRect(Control)

Converts a ControlRectangle from logical units to device units.

LogicalToDeviceRect(IntPtr, Rect)

Converts a Rect from logical units to device units.

LogicalToDeviceRect(IntPtr, Rect)

Converts a window's bounding rectangle from logical units to device units.

LogicalToDeviceRect(IntPtr, Rectangle)

Converts a window's bounding rectangle from logical units to device units.

LogicalToDeviceRect(IntPtr, Rectangle)

Converts a Rectangle from logical units to device units.

LogicalToDeviceRect(Visual, Rect)

Converts a Rect from logical units to device units.

LogicalToDeviceRect(Window)

Converts a WindowRect from logical units to device units.

LogicalToDeviceSize(Control, Size)

Converts a Point from logical units to device units.

LogicalToDeviceSize(IntPtr, Size)

Converts a Size from logical units to device units.

LogicalToDeviceSize(IntPtr, Size)

Converts a Size from logical units to device units.

LogicalToDeviceSize(Visual, Size)

Converts a Point from logical units to device units.

LogicalToDeviceUnits(Control, Double)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, Int16)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, Int32)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, Int64)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, Single)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, UInt16)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, UInt32)

Converts an value from logical units to device units.

LogicalToDeviceUnits(Control, UInt64)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, Double)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, Int16)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, Int32)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, Int64)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, Single)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, UInt16)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, UInt32)

Converts an value from logical units to device units.

LogicalToDeviceUnits(IntPtr, UInt64)

Converts an value from logical units to device units.

LogicalToDeviceUnitsX(Visual, Double)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, Int16)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, Int32)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, Int64)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, Single)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, UInt16)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, UInt32)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsX(Visual, UInt64)

Converts an x-coordinate (or horizontal) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, Double)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, Int16)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, Int32)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, Int64)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, Single)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, UInt16)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, UInt32)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceUnitsY(Visual, UInt64)

Converts a y-coordinate (or vertical) value from logical units to device units.

LogicalToDeviceVector(IntPtr, Vector)

Converts a Vector from logical units to device units.

LogicalToDeviceVector(Visual, Vector)

Converts a Vector from logical units to device units.

Applies to