Dpi primary

  1. High DPI Desktop Application Development on Windows
  2. Mouse DPI: What it is and why you need to know
  3. DPI and device


Download: Dpi primary
Size: 61.29 MB

High

In the In the Windows 10 Anniversary Update we chipped away at this problem by introducing mixed-mode DPI scaling and other high-DPI-related APIs. These APIs made it less expensive for developers to update desktop applications to handle dynamic DPI situations (situations where desktop applications are expected to detect and respond to DPI changes at runtime). We’re still working on improving the high-DPI story for you and in this article we’ll go over some of the improvements coming in the Windows 10 Creators Update. Before we dive into that, here’s a quick recap of the issue: The image above illustrates the types of issues you’ll see in Windows 10 when using multiple displays with different DPI values. In this case a low-DPI primary (“main”) display docked to a high-DPI external display. In this picture you can see: • Some applications (Word) render blurry on the high-DPI display • Some applications (PowerPoint and Skype for Business) are crisp but render at the wrong size • Desktop icons are sized incorrectly on the high-DPI display • Tooltips are sized incorrectly • The desktop watermark is sized incorrectly Note that these are just a few of the types of issues and that all the items that are too small in this picture could easily be too large if the display topology was reversed (high-DPI primary and low-DPI external display). Spoiler alert: many (but not all) of these issues have been fixed in the Creators Update. Developer Improvements in the Creators Update The high...

High DPI Desktop Application Development on Windows

In this article This content is targeted at developers who are looking to update desktop applications to handle display scale factor (dots per inch, or DPI) changes dynamically, allowing their applications to be crisp on any display they're rendered on. To start, if you're creating a new Windows app from scratch, it is highly recommended that you create a Desktop applications using older Windows programming technologies (raw Win32 programming, Windows Forms, Windows Presentation Framework (WPF), etc.) are unable to automatically handle DPI scaling without additional developer work. Without such work, applications will appear blurry or incorrectly-sized in many common usage scenarios. This document provides context and information about what is involved in updating a desktop application to render correctly. Display Scale Factor & DPI As display technology has progressed, display panel manufacturers have packed an increasing number of pixels into each unit of physical space on their panels. This has resulted in the dots per inch (DPI) of modern display panels being much higher than they have historically been. In the past, most displays had 96 pixels per linear inch of physical space (96 DPI); in 2017, displays with nearly 300 DPI or higher are readily available. Most legacy desktop UI frameworks have built-in assumptions that the display DPI will not change during the lifetime of the process. This assumption no longer holds true, with display DPIs commonly changing several ...

Mouse DPI: What it is and why you need to know

No touchpad can substitute the intuitive control and easily accessible buttons of even the most basic mouse. If you don’t already have a main driver for your PC or laptop, check out our best gaming mouse and best budget mouse pages. When buying a mouse, you’ll see that DPI is one of the many features listed. So before you go on purchasing things, here’s everything you need to know about mouse DPI. What is DPI? DPI (Dots Per Inch) is a measure of “dots” that your mouse is able to read per linear inch of movement in one direction. A dot in this instance is the mouse’s internal count of distance traveled within an inch. Combined with another value, called a Polling Rate, which is the frequency in Hertz at which the mouse sends this DPI information to your PC. These are the two components that make up an optical mouse’s sensitivity. Razer Viper 8K (Image credit: Laptop Mag) Where some of the confusion comes in is that options exist in Windows and Apple computers to adjust parameters at times called “sensitivity,”“speed” or “acceleration,” which do so without changing a mouse’s internal DPI or polling rate. These values change the speed at which your operating system will move the cursor across the screen without taking in more data. These options exist primarily because a basic mouse doesn’t allow you to change the DPI or polling rate values, so for those users this is the only choice to speed up or slow down their cursor. And for standard applications, this is good enough. Bu...

DPI

In this article If you need to perform deployment customizations, the following sections explain the registry keys and system parameters that your post-installation scripts might need to access. In this article: • • • • • Primary display native resolution Table 1 Windows 8.1 Scaling Levels, while by no means exhaustive, provides information on the Windows 8.1 scaling level for a number of common displays. Panel DPI indicates the physical pixel density of the panel, and Scaling level indicates the scale factor that will be used for this display. Table 1 Windows 8.1 Scaling Levels Display size Display resolution Horizontal (pixels) Vertical (pixels) Panel DPI Scaling level 10.6" FHD 1920 1080 208 150% 10.6" HD 1366 768 148 100% 11.6" WUXGA 1920 1200 195 150% 11.6" HD 1366 768 135 100% 13.3" WUXGA 1920 1200 170 150% 13.3" QHD 2560 1440 221 200% 13.3" HD 1366 768 118 100% 15.4" FHD 1920 1080 143 125% 15.6" QHD+ 3200 1800 235 200% 17" FHD 1920 1080 130 125% 23" QFHD (4K) 3840 2160 192 200% 24" QHD 2560 1440 122 125% To programmatically find this information for any device, you can write a utility program that reports back data. The native primary resolution is retrieved by calling the API // Get desktop dc desktopDc = GetDC(NULL); // Get native resolution horizontalResolution = GetDeviceCaps(desktopDc,HORZRES); verticalResolution = GetDeviceCaps(desktopDc,VERTRES); For more information about GetDC, see Primary display DPI scale factor Similarly, you can get the pixel density by...

DPI and device

In this article To program effectively with Windows graphics, you must understand two related concepts: • Dots per inch (DPI) • Device-independent pixel (DIPs). Let's start with DPI. This will require a short detour into typography. In typography, the size of type is measured in units called points. One point equals 1/72 of an inch. 1 pt = 1/72 inch Note This is the desktop publishing definition of point. Historically, the exact measure of a point has varied. For example, a 12-point font is designed to fit within a 1/6" (12/72) line of text. Obviously, this does not mean that every character in the font is exactly 1/6" tall. In fact, some characters might be taller than 1/6". For example, in many fonts the character Å is taller than the nominal height of the font. To display correctly, the font needs some additional space between the text. This space is called the leading. The following illustration shows a 72-point font. The solid lines show a 1" tall bounding box around the text. The dashed line is called the baseline. Most of the characters in a font rest on the baseline. The height of the font includes the portion above the baseline (the ascent) and the portion below the baseline (the descent). In the font shown here, the ascent is 56 points and the descent is 16 points. When it comes to a computer display, however, measuring text size is problematic, because pixels are not all the same size. The size of a pixel depends on two factors: the display resolution, and the p...