Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width = 0(In a HiDPI environment On a Windows 10 machine with scaling enabled I cannot hit singles pixels drawing directly with the gc when the line width is set to 0.)
Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width = 0 [message #1772209] Wed, 06 September 2017 17:26 Go to next message
Lothar L. is currently offline Lothar L.Friend
Messages: 27
Registered: July 2016
Junior Member
In a HiDPI environment On a Windows 10 machine with scaling enabled I cannot hit singles pixels drawing directly with the GC when the line width is set to 0. Windows will default to a scaling of 200% in a 4k setup by default.

As a result rectangles cannot be painted directly next to other. When drawing lines there will always be a an empty line in between. Painting dots/pixels directly next to each other is not possible

Are we doing something wrong or missing something? Is this a known issue? We would expect to still be able to paint on each pixel. This also means that code is not portable between system with and without scaling.


Furthermore when drawing rounded rectangles or paths directly with the GC the results differ depending if scaling is enabled or not.


We made images trying to illustrate the issue. Attached is also the code we used to create the dummy application.


Has anybody had the same problem? Is there a workaround?
Re: Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width [message #1788989 is a reply to message #1772209] Wed, 30 May 2018 21:52 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Yes, I see problems with drawing on HiDPI as well. Did you ever file a bug for this?
Re: Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width [message #1789016 is a reply to message #1772209] Wed, 30 May 2018 22:03 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Yes, I see problems with drawing on HiDPI as well. Did you ever file a bug for this?
Re: Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width [message #1797253 is a reply to message #1772209] Mon, 29 October 2018 09:40 Go to previous message
Lothar L. is currently offline Lothar L.Friend
Messages: 27
Registered: July 2016
Junior Member
Sorry for the late reply. I didn't see your message.

If you are still interested I opened bug 521887 [1]

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=521887
Previous Topic:Loc k the position of first element in dual list box
Next Topic:org.eclipse.swt.SWTException: Invalid thread access
Goto Forum:
  


Current Time: Sat Apr 20 01:39:13 GMT 2024

Powered by FUDForum. Page generated in 0.02858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top