Questions tagged [highdpi]

205 questions
6
votes
0 answers

Retina/high-DPI custom cursor in Java?

Is there any way to support high-resolution displays for Java custom cursors? The usual method seems to be using Toolkit: Toolkit.getDefaultToolkit().createCustomCursor(cursorImage, new Point(), "customCursor"); However, there is very little…
Alexis King
  • 43,109
  • 15
  • 131
  • 205
6
votes
2 answers

Strange behavior with embedded highDPI images in Apple Mail 7.0

I came across an issue where images get displayed in there native size even with width attribute: Here's my test html
Xaver
  • 11,144
  • 13
  • 56
  • 91
5
votes
2 answers

WinForms: How to fix incorrect scaling of Forms in high-DPI, multi-monitor environments (PerMonitorV2) with different resolution/scaling

In a Winforms app, I followed the general guidance in how-to-write-winforms-code-that-auto-scales-to-system-font-and-dpi-settings and in .Net Framework high-dpi support to enable PerMonitorV2 DPI Scaling. I am using .NET Framework 4.8 on a system…
JohnC
  • 81
  • 1
  • 5
5
votes
2 answers

Reliably read Windows Scaling factor from Delphi VCL application

In my efforts to properly handle DPI changes in my application, I am using the following code to read the current scaling factor: TYPE TZoom = BYTE; FUNCTION OldStyleGetDpiForSystem : TZoom; cdecl; VAR DC : HDC; X,Y,Z :…
HeartWare
  • 7,464
  • 2
  • 26
  • 30
5
votes
1 answer

How to disable display scaling on high DPI settings of an exe generated by Matlab compiler

I don't like the Windows auto scaling on high DPI settings. So I normally turn the scaling off by check the settings on Compatability of the exe properties. I used Matlab compiler to generate an exe, but its Disable display scaling on high DPI…
Splash
  • 1,288
  • 2
  • 18
  • 36
4
votes
2 answers

Windows System DPI: GetDeviceCaps(hdc, LOGPIXELSX/Y) vs GetDpiForSystem()

Recently, I read this excellent page about DPI on Win32: DPI and device-independent pixels However, I am confused about GetDeviceCaps(hdc, LOGPIXELSX/Y) vs GetDpiForSystem(). On systems where I tested, all three values always match. Questions: Is…
kevinarpe
  • 20,319
  • 26
  • 127
  • 154
4
votes
1 answer

How to make MFC CToolbar button sizes more consistent for high DPI aware applications on Windows 7/10

I'm working on a old C++ MFC app using CToolbar for its toolbar compiling with Visual Studio 2017. When the application is set to 'High DPI Aware' in the manifest settings (Project/Properties/Configuration Properties/Manifest Tool/Input and…
persiflage
  • 1,154
  • 12
  • 22
4
votes
2 answers

img srcset, browser chooses too large images

This is an image srcset generated by Gatsby:
Atte Juvonen
  • 4,922
  • 7
  • 46
  • 89
4
votes
1 answer

Scaling TImageList with PNG icons for high DPI mode

I want to make HeidiSQL high-dpi aware, which includes upscaling my one TImageList with lots of alpha-transparent PNG icons in it. I have baken a procedure which does it, but it breaks the normal transparency and also the alpha-transparency, so the…
Anse
  • 1,573
  • 12
  • 27
4
votes
1 answer

How to make Delphi XE2 look good on 4k monitor with 200% text size?

I have the new Dell XPS 15 Kaby Lake version with 3840x2160 resolution and text size set to 200%. Now, the Delphi XE2 looks terrible, some parts: or I tried to set various settings via it's shortcut in Properties->Compatibility, I also tried to…
Lukas Salich
  • 959
  • 2
  • 12
  • 30
4
votes
3 answers

WPF Application Blurry on High DPI Screen on Windows 10

Do WPF applications normally scale correctly on high DPI screens out of the box (without further customisation of a manifest etc?). It was my understanding they did? Two WPF applications I have written both appear blurry on my new laptop (running…
Daniel Scott
  • 1,758
  • 16
  • 13
4
votes
0 answers

How to work in QTDesigner on high DPI display?

I have a 4k monitor and I've installed Qt 5.6 RC + VS 2015 + Qt5Package. Everything is set up, I can design and compile my applications developed previously on normal DPI PC and it runs perfectly. But... When I first opened layout.ui file of my…
michnovka
  • 2,880
  • 3
  • 26
  • 58
4
votes
0 answers

Use correct size of WPF SplashScreen for screens with different DPI

I'm using the SplashScreen functionality in my WPF app (e.g. 400x200px PNG file). On screens with standard DPI, SplashScreen is displayed correctly, but on Retina displays or other High-DPI screens it looks very small. It is possible to provide more…
Dominik Palo
  • 2,873
  • 4
  • 29
  • 52
4
votes
4 answers

how to differentiate the 480X800 and 480X854 screens in android?

how to differentiate the 480X800 and 480X854 screens. we have an option to put the one image at the hdpi folder.in my case 480X800 image is does not support for the 480X854 image. it shows a blank space at the bottom.Any Idea? Edit: i set the image…
Praveen
  • 90,477
  • 74
  • 177
  • 219
3
votes
1 answer

How can I avoid garbled text and vector graphics in Java Swing with UI scaling and off-screen buffering?

I'm developing a Java application where several JPanels (not JFrames) have complex animations that necessitate drawing to an off-screen buffer before blitting to the display surface. A problem I'm having is that Swing is performing UI scaling for…
COTO
  • 163
  • 1
  • 5
1 2
3
13 14