控制尺寸125%缩放 [英] control size 125% scaling

查看:219
本文介绍了控制尺寸125%缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想了解DPI缩放数学如何在引擎盖下工作

I'm just trying to understand how the DPI scaling maths works under the hood

是否有白皮书等等?

如果我说组合框宽度为157像素宽,100%

If I have say a combobox that is 157 pixels wide at 100%

如果我的数学成绩为125%那应该是关于196.25像素

If I do the maths at 125% it should be about 196.25 pixels

如果我以125%的屏幕抓取并在Paint中测量它,它是208像素宽,是原始大小的132%

If I take a screen grab at 125% and measure it in Paint it is 208 pixels wide which is 132% of the original size

我很欣赏一个不能处理部分像素并且可能有一定程度的调整,但这似乎与我预期的大小相当?

I appreciate one can't deal in part pixels and there is probably a degree of adjustment for that but this seems to me to be quite a way from the expected size ?

谢谢

推荐答案

有趣的是,整个测试表格的宽度为214px,100%

Interestingly the whole test Form was 214px wide at 100%

125%NON DPI意识到它是267px,这是现货上的

At 125% NON DPI aware it went to 267px which is spot on

125%DPI AWARE它变为285px,这是133% 

At 125% DPI AWARE it went to 285px which is 133% 

那么最后一次怎么样?一个正在计算?

So how is the last one being calculated ?

谢谢


这篇关于控制尺寸125%缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆