jasseeker.blogg.se

Surface pro x and windows 11
Surface pro x and windows 11












surface pro x and windows 11

Call GetDeviceCaps with the Handle to retrieve the Screen Height IntPtr DeviceContextHandle = GraphicsObject.GetHdc() Get Handle to the device context associated with this Graphics object Graphics GraphicsObject = Graphics.FromHwnd(IntPtr.Zero) Create Graphics object from the current windows handle Static double GetWindowsScreenScalingFactor(bool percentage = true) Public static extern int GetDeviceCaps(IntPtr hDC, int nIndex) Return GetDpiForWindow(windowHandle) / 96f įor this to work correctly on Windows 10 anniversary, you need to add an app.manifest to your C# project: Ī more complete version of Ric Gaudet's answer: Public float GetDisplayScaleFactor(IntPtr windowHandle) Static extern int GetDpiForWindow(IntPtr hWnd) This is a very old question, but since Windows 8.1, one can use various other functions, like GetDpiForWindow do something nice for people who can't see very well. Int logpixelsy = GetDeviceCaps(desktop, (int)DeviceCap.LOGPIXELSY) įloat screenScalingFactor = (float)PhysicalScreenHeight / (float)LogicalScreenHeight įloat dpiScalingFactor = (float)logpixelsy / (float)96 Int PhysicalScreenHeight = GetDeviceCaps(desktop, (int)DeviceCap.DESKTOPVERTRES) Int LogicalScreenHeight = GetDeviceCaps(desktop, (int)DeviceCap.VERTRES) Static extern int GetDeviceCaps(IntPtr hdc, int nIndex) Īnd usage: Graphics g = Graphics.FromHwnd(IntPtr.Zero) Not sure why this is the case, but this code seems to work for any scale setting. I tested about 20 different scaling factors, and the DPI always returns as 96, except for when set at 125%, which returns a DPI of 120. The new Surface Pro 8, which is even more capable, will start at $1,099.Using Farshid T's answer as a base works in every scaling factor, except for 125%. While it has shorter battery life, its Intel processor can natively run all Windows apps. Still, the Surface Pro X faces an uphill climb against the similarly priced Surface Pro 7, which can currently be found for $699 with comparable specs. The Surface Pro X's ability to support both x86 and 圆4 emulation could help, though. Microsoft has touted that Adobe Photoshop, Adobe Lightroom, Shapr 3D, Zoom, Microsoft Office, and Microsoft Teams will now work on the Surface Pro X, though I don't see many people making heavy photo edits on a device like this.

surface pro x and windows 11

The bigger issue is the number of applications that can run natively on its ARM-based architecture. Its lower starting price of $899 could attract more buyers. There's not much new to the 2021 Surface Pro X other than the company offering a new Wi-Fi only model. Microsoft says that the new Surface Pro X 2021 will last up to 15 hours on a charge, same as the previous generation. We will be testing this claim during our full review.

surface pro x and windows 11 surface pro x and windows 11

(Image credit: Microsoft) Microsoft Surface Pro X 2021: Battery life














Surface pro x and windows 11