I am facing problems with PNG that includes some gradients. They are very bad shown, with bands instead of soft transitions. I have attached two images that illustrates the problem.
In the past I used to solve this problem with the workaround of spreading some noise on before saving the PNG, but it means more time lost and less graphic quality.
Now I have a graphic designer that is improving the graphics of my first game, and I do not want to tell him that he must do such dirty things so the gradients are shown as it should.
So, is there any definitive solution to this problem and not merely a workaround?
> I am facing problems with PNG that includes some gradients. They are very
> bad shown, with bands instead of soft transitions. I have attached two
> images that illustrates the problem.
> In the past I used to solve this problem with the workaround of spreading
> some noise on before saving the PNG, but it means more time lost and less
> graphic quality.
> Now I have a graphic designer that is improving the graphics of my first
> game, and I do not want to tell him that he must do such dirty things so
> the gradients are shown as it should.
> So, is there any definitive solution to this problem and not merely a
> workaround?
> Best regards,
> --
> 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<android-developers@googlegroups.com>
> To unsubscribe from this group, send email to
> android-developers+**unsubscribe@googlegroups.com<android-developers%2Bunsu bscribe@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
I checked the original image you provided with Intel emulator images and SGS2 by creating a layout with one ImageView only. They all showed properly. Could you provide more information on how you render it onto screen if you want me to do some more extensive testing?
--
H
On Sep 24, 2012, at 5:49 PM, Francisco Marzoa <fmmar...@gmail.com> wrote:
> I am facing problems with PNG that includes some gradients. They are very bad shown, with bands instead of soft transitions. I have attached two images that illustrates the problem.
On Monday, September 24, 2012 9:52:47 AM UTC-5, Fran wrote:
> Hi,
> I am facing problems with PNG that includes some gradients. They are > very bad shown, with bands instead of soft transitions. I have attached > two images that illustrates the problem.
> In the past I used to solve this problem with the workaround of > spreading some noise on before saving the PNG, but it means more time > lost and less graphic quality.
> Now I have a graphic designer that is improving the graphics of my first > game, and I do not want to tell him that he must do such dirty things so > the gradients are shown as it should.
> So, is there any definitive solution to this problem and not merely a > workaround?
In fact, the problem was with the format, but with RGB_4444. I have had problems like this before, but for some reason I forgot it, and I recall just a minute after sending that question.
> Maybe you are loading a bitmap with this format:
> Bitmap.Config
> RGB_565
> On Monday, September 24, 2012 9:52:47 AM UTC-5, Fran wrote:
> Hi,
> I am facing problems with PNG that includes some gradients. They are
> very bad shown, with bands instead of soft transitions. I have
> attached
> two images that illustrates the problem.
> In the past I used to solve this problem with the workaround of
> spreading some noise on before saving the PNG, but it means more time
> lost and less graphic quality.
> Now I have a graphic designer that is improving the graphics of my
> first
> game, and I do not want to tell him that he must do such dirty
> things so
> the gradients are shown as it should.
> So, is there any definitive solution to this problem and not merely a
> workaround?
> Best regards,
> -- > 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en