如何在Windows Phone 7中更正颜色条带? [英] How can I correct color banding in windows phone 7?

查看:151
本文介绍了如何在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:

最后16位使用Floyd-Steinberg抖动。

Finally 16-bit with Floyd-Steinberg dithering.

PS我做这个与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天全站免登陆