GetDesktopDpi
GetDesktopDpi is a function used in computer programming, primarily within the Microsoft Windows operating system environment, to retrieve the screen's dots per inch (DPI) setting. DPI is a measure of the density of pixels on a display screen. Higher DPI values indicate that more pixels are packed into the same physical space, resulting in sharper images and text.
The GetDesktopDpi function is part of the Windows API (Application Programming Interface) and is typically called
This function returns two values: the horizontal and vertical DPI. In most standard configurations, these values