• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Retina 显示器 VS 正常显示器色差

用户头像
it1352
帮助5

问题说明

我正在设计一个自定义按钮,它需要我在 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 上,来自 UIButtonUIImageView 的图像看起来颜色略有不同,尽管它们应该匹配.在 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.

这张图片显示了不同之处:

This image shows the 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?

正确答案

#1

确保您的所有图像文件都没有嵌入的颜色配置文件.这可能很棘手.对于 Adob​​e 软件,此页面很有帮助:

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/

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tangfkkai
系列文章
更多 icon
同类精品
更多 icon
继续加载