How can I correct color banding in windows phone 7?

后端 未结 4 1085
长发绾君心
长发绾君心 2020-12-17 01:18

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

4条回答
  •  一个人的身影
    2020-12-17 02:06

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

    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.

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

    alt text

    Next is a 16-bit without dithering:

    alt text

    Finally 16-bit with Floyd-Steinberg dithering.

    alt text

    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.

提交回复
热议问题