logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
BelikovSeregy  
#1 Posted : Wednesday, January 27, 2016 12:03:46 AM(UTC)
Quote
BelikovSeregy

Rank: Newbie

Groups: Registered
Joined: 1/26/2016(UTC)
Posts: 5
Russian Federation
Location: Moscow

Is there any way to improve text clarity when downscaled?
See attached image. WPF PDFviewer is at the top, and at the bottom is the same document loaded in WPF browser control (using Adobe ActiveX).
Text clarity problem

It looks a little better when Windows 10 scaling is set to 100%
UserPostedImage
But still, worse than Adobe.

Edited by user Wednesday, January 27, 2016 12:21:59 AM(UTC)  | Reason: Not specified

BelikovSeregy  
#2 Posted : Sunday, January 31, 2016 7:52:22 AM(UTC)
Quote
BelikovSeregy

Rank: Newbie

Groups: Registered
Joined: 1/26/2016(UTC)
Posts: 5
Russian Federation
Location: Moscow

Here is a very simple test file (text and 1pt rectangle):
GDrive ClarityTest.pdf
From onedrive

and result for WPF control and OneDrive (windows DPI is 125%).
ClarityTest

If you zoom in, you can see that is uses ClearType (colored subpixel antialiasing) and WPF control - no. I found that Chrome also doesn't use cleartype, but at least it works correctly with windows scaling:
UserPostedImage

Edited by user Sunday, January 31, 2016 8:19:42 AM(UTC)  | Reason: Not specified

Paul Rayman  
#3 Posted : Sunday, January 31, 2016 7:34:53 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
I have found the solution for WinForms application.
To resolve this problem you should add to your project a manifest file with following attributes:
Code:
  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
    </windowsSettings>
  </application>

Edited by user Sunday, January 31, 2016 7:36:20 PM(UTC)  | Reason: Not specified

Paul Rayman  
#4 Posted : Sunday, February 7, 2016 4:59:40 AM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
WPF control fixed too
Quick Reply Show Quick Reply
Users browsing this topic
Guest (2)
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.