Min Resolution&DPI
发布日期:2021-08-13 04:05:37 浏览次数:42 分类:技术文章

本文共 1101 字,大约阅读时间需要 3 分钟。

 

1.    Screen resolution: 800*600 , 96DPI (100%)

Work Area Size as follow:

800*560 (subtract bottom/top taskbar height)

686*600 (subtract left/Right  taskbar height)

 

2.    Screen resolution: 1024*768, 120DPI (125%)

Get Work Area Size  from  System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size :

1024*720(subtract bottom/top taskbar height)

933*768(subtract  left/Right  taskbar height)

 

Get Work Area Size from  SystemParameters.WorkArea.Size:

820.0*576.8(subtract bottom/top taskbar height)

747.2*615.2(subtract  left/Right  taskbar height)

This size has divided by DPI(125%).

 

3.       Screen resolution:1280*800, 144DPI (150%)

Get Work Area Size from  System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size :

1280*744 (subtract bottom/top taskbar height)

1189*800 (subtract  left/Right  taskbar height)

 

Get Work Area Size from  SystemParameters.WorkArea.Size:

854.0*496.7(subtract bottom/top taskbar height)

793.3*534.0(subtract  left/Right  taskbar height)

This size has divided by DPI(150%).

 

 

So , the Min Width is 686, Min Height is 496.7.

Is it Right?

 

转载于:https://www.cnblogs.com/xiaokang088/archive/2013/02/26/2933610.html

转载地址:https://blog.csdn.net/weixin_30675247/article/details/98993984 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:js类型识别方法
下一篇:指针学习笔记

发表评论

最新留言

不错!
[***.144.177.141]2024年04月23日 20时41分32秒