Class WinGDI
public static class WinGDI
- Inheritance
-
WinGDI
- Inherited Members
Methods
GetDeviceCaps(IntPtr, DeviceCapability)
public static extern int GetDeviceCaps(IntPtr hWnd, WinGDI.DeviceCapability index)
Parameters
hWnd
IntPtrindex
WinGDI.DeviceCapability
Returns
GetLogicalPixels(int, int, long, IntPtr)
Retrieves the number of logical pixels in the window or screen area bound by pixelsX
and pixelsY
physical pixels, based on deviceDPI
.
public static (int, int) GetLogicalPixels(int pixelsX, int pixelsY, long deviceDPI = 96, IntPtr hWnd = default)
Parameters
pixelsX
intNumber of physical pixels in the x-axis of the window or screen area being measured.
pixelsY
intNumber of physical pixels in the y-axis of the window or screen area being measured.
deviceDPI
longThe DPI of the window or screen area being measured.
hWnd
IntPtrHandle to the window or, if NULL, the screen whose area is being measured.