Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第二章 寄宿图 中的一个像素比例错误 #94

Open
twi-star opened this issue Mar 7, 2020 · 0 comments
Open

第二章 寄宿图 中的一个像素比例错误 #94

twi-star opened this issue Mar 7, 2020 · 0 comments

Comments

@twi-star
Copy link

twi-star commented Mar 7, 2020

原文:
如果contentsScale设置为1.0,将会以每个点1个像素绘制图片,如果设置为2.0,则会以每个点2个像素绘制图片,这就是我们熟知的Retina屏幕。(如果你对像素和点的概念不是很清楚的话,这个章节的后面部分将会对此做出解释)。
修改:
如果contentsScale设置为1.0,将会以每个点1个像素绘制图片,如果设置为2.0,则会以每个点4个像素绘制图片,这就是我们熟知的Retina屏幕。(如果你对像素和点的概念不是很清楚的话,这个章节的后面部分将会对此做出解释)。
个人理解: scale为2.0表示的是横向2个像素,竖向2个像素,那就是4个像素

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant