Retina显示VS正常显示色差 [英] Retina display VS normal display color difference

查看:126
本文介绍了Retina显示VS正常显示色差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个自定义按钮,要求我在 UIImageView 之上覆盖 UIButton UIImageView 使用 [UIImage stretchableImageWithLeftCapWidth:topCapHeight:] 图片和 UIButton 具有图案图像的背景颜色 [UIColor colorWithPatternImage:[UIImage imageNamed:@buttonPattern.png]]

I am designing a custom button with that requires me to overlay a UIButton on top of a UIImageView. The UIImageView uses a [UIImage stretchableImageWithLeftCapWidth:topCapHeight:] image and the UIButton has a background color with a pattern image [UIColor colorWithPatternImage:[UIImage imageNamed:@"buttonPattern.png"]]

我面临的问题是iPhone 4上的图像来自 UIButton UIImageView 虽然颜色应该匹配,但颜色略有不同。在iPhone 3GS上测试相同的东西显示没有色差的正常结果。

The problem I am facing is that on iPhone 4, the images from the UIButton and the UIImageView appear to have slightly different colors although they should match. Testing the same thing on an iPhone 3GS shows normal results without the color difference.

此图像显示差异:

尽可能在3GS上看起来很好看。在视网膜显示屏上,您可以清楚地看到颜色的差异。我甚至尝试在视网膜显示器上使用低分辨率图像(来自3GS),颜色仍然显示不同。这是视网膜显示设备中的一个错误吗?以前有人遇到过这个问题吗?

as you can see it looks fine on the 3GS. On the retina display you can clearly see the difference in color. I even tried using the low res images (from the 3GS) on the retina display, the colors were still showing differently. is this a bug in retina display devices? has anyone faced this issue before?

推荐答案

确保所有图像文件都没有嵌入的颜色配置文件。这可能很棘手。对于Adobe软件,此页面很有用:

Make sure none of your image files has an embedded color profile. This can be tricky. For Adobe software, this page is helpful:

http: //bjango.com/articles/photoshop/

这篇关于Retina显示VS正常显示色差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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