C# 編程:DPI適配解決高清屏的模糊顯示

現在越來越多的開始使用Win10系統,並且使用了高清顯示屏。

但是在C#開發時卻出現了軟件字體模糊,感覺羽化了的效果。

後來發現可以在manifest配置文件中添加適配dpi來解決。

具體方法如下:

add new item

add then manifest config

然後編輯manifest文件中將如下配置取消註釋使其生效即可:

  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
    </windowsSettings>
  </application>

以上。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章