[android-developers] Re: PNG Color Issue

2009-06-04 Thread Wang Mac
Do you mean "add noise" to the images?

I tried to add 0.5 noise to our image as the widget guide mentioned, but it
only makes the banding looks different.
It's not as good as enabling dither attribute.

I hope I can do "pre-ditering" so that I can save a little CPU power. Can
you advise how to do it correctly?

2009/5/20 Romain Guy 

>
> 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  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
> romain...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PNG Color Issue

2009-05-21 Thread Tony Wu

Dear Romain Guy,
I had tried to make a pre-dithering image by Photoshop tools "save for
web and device" and specify "PNG-8 128 Dithered" to my image, but it
still didn't work.
Can you show me the guideline how to make a proper image by Photoshop
for Android??

Thank you very much!

On 5月20日, 上午4時34分, Romain Guy  wrote:
> 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  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=dire...
>
> > And the following two links were the original png files:
>
> >http://picasaweb.google.com/lh/photo/WJahLJ7uMRk2dA9GhYjs-Q?feat=dire...
> >http://picasaweb.google.com/lh/photo/0ddqAeWxd957SAVelwu_jA?feat=dire...
>
> > 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
> romain...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PNG Color Issue

2009-05-19 Thread Romain Guy

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  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
romain...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---