简体   繁体   English

为什么模拟器和iPhone之间的颜色不同?

[英]Why is color different between simulator and my iPhone?

My project's written by swift. 我的项目是由swift编写的。 Everything's right when i build it on simulator, but everything about color is wrong when i build it on my iPhone. 当我在模拟器上构建它时,一切都正确,但当在iPhone上构建它时,关于颜色的一切都错了。 Color and image's color have fader color than the original! 颜色和图像的颜色比原始颜色具有渐变色! Please help me! 请帮我!

The problem is that the precise physical capabilities of the display of an iPhone and the Mac greatly differ. 问题在于,iPhone和Mac显示器的精确物理功能差异很大。

What you can do is add some extra values to simulator's RGB. 您可以做的是为模拟器的RGB添加一些额外的值。

  • Red +12 红色+12
  • Green +19 绿色+19
  • Blue +16 蓝色+16

This will give color near to what you want in iPhone. 这将使颜色接近iPhone所需的颜色。

The iPhone is not color managed. iPhone未进行颜色管理。 It does not include ColorSync or any other color matching technology. 它不包括ColorSync或任何其他颜色匹配技术。 This is currently a limitation of the OS and/or hardware, unfortunately. 不幸的是,当前这是对OS和/或硬件的限制。

On Mac OS Go to System Preferences >> Displays >> Select Color tab than change Display profile to Generic RGB profile . 在Mac OS上,转到“ 系统偏好设置” >>“ 显示 ” >>“选择颜色”选项卡,然后将“ 显示”配置文件更改为“ 通用RGB”配置文件

在此处输入图片说明

If this still not works than click on Calibrate button from same and set up desire accuracy you want. 如果仍然无法执行此操作,请从中单击“ 校准”按钮并设置所需的精度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM