![]() It will give you metrics, resolution, and DPI for each window of your app, with understanding based on the monitor it currently appears on. The VCL automatically handles most of the resizing for you, but there is a new function in the VCL.Classes unit called GetSystemMetricsForWindow that takes advantage of the new GetSystemMetricsForDPI API (with fallback to the old GetSystemMetrics). New VCL projects default to Per Monitor v2, but you will want to update your existing projects. The DPI Awareness option is in the project Manifest. Marco Cantu did a write-up on the new Per Monitor v2 support, which is support for a new feature in Windows 10 that allows your app to get the correct DPI support for each screen. What does all this mean for you as a developer? 10.3 Rio has new features to help with your High-DPI development with VCL on Windows When you have a High DPI (>96 DPI) monitor, Windows applies a scale factor so that instead of your content getting really small and hard to read, instead it makes the fonts sharper and the images more detailed. With Windows 10 independent DPI scaling per monitor was added. Windows 7 expanded on this giving Windows the ability to query the actually pixel density from the monitor. ![]() If an app doesn’t indicate it supports High-DPI then it is treated as 96-DPI. Originally Windows monitors assumed monitors were 96 DPI (even though they were usually 72 PPI in reality.) Windows XP added GDI+ allowing resolution-independent text scaling, and Windows Vista added support for High-DPI displays, so more physical pixels could be used to display sharper text and more detailed images. As the screen gets larger, the DPI gets lower, unless you also increase the resolution.ĭPI = (sqrt(sqr(width)+sqr(height))/diagonal 27” or 68.58 cm), but we can use these numbers to calculate the DPI (see More on DPI and PPI below) with the good ol’ Pythagorean theorem. Often times when we talk about monitors we discuss resolution (e.g.1920×1080) and diagonal dimensions (e.g. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |