This happens because Android renders images using a 16 bits color depth, which causes banding in your case. You can reduce banding by enabling dithering on your drawing or better yet, by pre-dithering the image using Photoshop or any graphics editor that can do that.
On Tue, May 19, 2009 at 2:25 AM, Tony Wu <[email protected]> wrote: > > Once I want to put the pictures in my application, I meet this > problem. > The color presented by Android device or emulator was different from > the original png files. > I made a simple application to present the two pictures in one page > and I fetch the picture as the following link: > > http://picasaweb.google.com/lh/photo/Rj5L_x_Z1IJGfGLmZV2B7g?feat=directlink > > And the following two links were the original png files: > > http://picasaweb.google.com/lh/photo/WJahLJ7uMRk2dA9GhYjs-Q?feat=directlink > http://picasaweb.google.com/lh/photo/0ddqAeWxd957SAVelwu_jA?feat=directlink > > Can anyone explain it for me why it presented in different color?? > > By the way, the picture was made in 32bit colors png format. > > Thanks & Regards > > Tony > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

