How do I determine the true pixel size of my Monitor in .NET?

前端 未结 6 1276
生来不讨喜
生来不讨喜 2020-11-29 07:09

I want to display an image at \'true size\' in my application. For that I need to know the pixel size of the display.

I know windows display resolution is nominally

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 07:27

    GetDeviceCaps can be P/Invoke'd to get some figures, but I've never known the figures to be that trustworthy...

提交回复
热议问题