[android-developers] Re: PNG 24 with Gradient not showing correctly

2009-06-05 Thread Romain Guy

That's normal. Most phones have a 16 bits (or close) display. Your
gradient is converted to the 565 format. To improve its appearance you
can either turn on dithering on the Paint or pre-dither your image in
Photoshop, etc.

On Fri, Jun 5, 2009 at 11:14 AM,
daniel.benedyktdaniel.bened...@gmail.com wrote:

 Hi

 I have a LinearLayout and I am setting a Background image.
 I am using a PNG24, and the image has a gradient in it.
 When I see the image on the computer the gradient is perfect, but when
 I see it on the emulator or on a real phone, some colors are lost and
 I see only like 10 colors, so I see lines and not a perfect gradient.
 Is the emulator 'compressing' the images?
 Should I make them in other format?

 Thanks

 Daniel
 




-- 
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 24 with Gradient not showing correctly

2009-06-05 Thread daniel.benedykt

Thanks Romain, I will try this.
I watched your Google IO video. Its great. Lots of good tips :)

Thanks Again

Daniel

On Jun 5, 3:22 pm, Romain Guy romain...@google.com wrote:
 That's normal. Most phones have a 16 bits (or close) display. Your
 gradient is converted to the 565 format. To improve its appearance you
 can either turn on dithering on the Paint or pre-dither your image in
 Photoshop, etc.

 On Fri, Jun 5, 2009 at 11:14 AM,





 daniel.benedyktdaniel.bened...@gmail.com wrote:

  Hi

  I have a LinearLayout and I am setting a Background image.
  I am using a PNG24, and the image has a gradient in it.
  When I see the image on the computer the gradient is perfect, but when
  I see it on the emulator or on a real phone, some colors are lost and
  I see only like 10 colors, so I see lines and not a perfect gradient.
  Is the emulator 'compressing' the images?
  Should I make them in other format?

  Thanks

  Daniel

 --
 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
-~--~~~~--~~--~--~---