使用数字色度计匹配Xcode色彩空间 [英] Matching Xcode color space with Digital Color Meter

查看:54
本文介绍了使用数字色度计匹配Xcode色彩空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode Interface Builder中,我使用Digital Color Meter查找项目的颜色代码,如下所示:

In Xcode Interface Builder, I use Digital Color Meter to find the color code of an item as follows:

http://i.imgur.com/SFsKoG0.png

(R,G,B)的值是(255,172,40).

然后我选择一个标签来设置它的颜色相同.我进行如下操作:

Then I select a label to set it's color same. I proceed as follows:

http://i.imgur.com/xGbIV9o.png

但是,现在当我使用数字色度计检测新分配的颜色时,我发现的是(253,156,32),而不是(255,172,40)

However, now when I use Digital Color Meter to detect the newly assigned color, I find instead of (255,172,40), I get (253,156,32).

[与以上相同的域名]/X4yN4qw.png (不幸的是,我没有足够的声誉来发布另一个链接)

[same domain as above]/X4yN4qw.png (unfortunately, I don't have enough reputation to post another link)

如何使两个项目的颜色匹配?

How can I make the color of both items match?

推荐答案

在Digital Color Meter中,确保将显示下拉菜单设置为以通用RGB显示".如果使用Interface Builder,则设置要在sRGB中显示的颜色.

In Digital Color Meter, make sure that the display drop-down menu is set to "Display in Generic RGB." If using Interface Builder, set the color to be displayed in sRGB.

这篇关于使用数字色度计匹配Xcode色彩空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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