如何纠正 Windows Phone 7 中的色带? [英] How can I correct color banding in windows phone 7?

查看:16
本文介绍了如何纠正 Windows Phone 7 中的色带?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 windows phone 7 应用程序有非常漂亮的背景图像,但它们在 16 位彩色设备上被色带破坏了.有什么办法可以纠正这个问题吗?我曾尝试在 Photoshop 中以多种不同模式保存,但无济于事.

My windows phone 7 app has very nice background images but they are being destroyed by color banding on a 16bit color device. Is there a way I can correct this? I have tried saving in several different modes in photoshop to no avail.

推荐答案

您需要使用抖动.Floyd-Steinberg 是一种很好的算法,它简单且运行速度快.

You need to use dithering. Floyd-Steinberg is a good algorithm that is simple and runs fast.

您不需要按照另一个答案的建议设置为每像素 8 位,您可以直接设置为每像素 16 位.在开始之前,你需要知道它是如何分成 R/G/B 的.

You don't need to go to 8 bits per pixel as suggested by another answer, you can go directly to 16 bits per pixel. You need to know how it is split into R/G/B before you begin.

这里有一些例子,首先是原始的 24 位:

Here are some examples, first up is the original 24-bit:

接下来是一个没有抖动的 16 位:

Next is a 16-bit without dithering:

最终使用 Floyd-Steinberg 抖动的 16 位.

Finally 16-bit with Floyd-Steinberg dithering.

附言我是用 Paint Shop Pro 做的,不知道 Photoshop 有没有类似的.您也可以在代码中完成.

P.S. I did this with Paint Shop Pro, I don't know if Photoshop has anything similar. You can do it in code as well.

这篇关于如何纠正 Windows Phone 7 中的色带?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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