Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I correct color banding in windows phone 7?

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.

like image 835
Jamey McElveen Avatar asked Oct 18 '10 16:10

Jamey McElveen


People also ask

Can you fix Colour banding?

How to Fix Banding. Change the Image Mode to 16 bits per channel: Image\Mode\16 bits\Channel. Convert the color space for the image to AdobeRGB. Add Blur, Noise or Texture.

How can I improve my color banding?

Avoid banding by making a well-exposed photograph and saving it as an uncompressed RAW file. To fix color banding, make subtle edits and limit how much you compress the photo when exporting as a JPEG. If banding is harsh and distracting, try disguising it by adding a blur and some noise to the area.

What causes Colour banding?

What Causes Color Banding. Banding can be created when there isn't enough tonal range to represent all the different colors between the brightest and the darkest points of a gradient. The tonal range is given by the number of bits. An 8-bit photograph will have 256 tonal values per color and a 16-bit one has 65,536.


1 Answers

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.

like image 129
Mark Ransom Avatar answered Sep 28 '22 03:09

Mark Ransom