Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Gradients on PNGs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Francisco Marzoa  
View profile  
 More options Sep 24 2012, 10:52 am
From: Francisco Marzoa <fmmar...@gmail.com>
Date: Mon, 24 Sep 2012 16:49:06 +0200
Local: Mon, Sep 24 2012 10:49 am
Subject: Gradients on PNGs

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,

  original.png
83K Download

  screenshot.png
111K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Anderson  
View profile  
 More options Sep 24 2012, 11:12 am
From: Justin Anderson <magouyaw...@gmail.com>
Date: Mon, 24 Sep 2012 09:09:17 -0600
Local: Mon, Sep 24 2012 11:09 am
Subject: Re: [android-developers] Gradients on PNGs

Since it looks like such a simple background, you could consider defining
your gradient as a drawable in XML...
http://android-dev-tips-and-tricks.blogspot.com/2012/08/xml-drawables...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware

On Mon, Sep 24, 2012 at 8:49 AM, Francisco Marzoa <fmmar...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harri Smått  
View profile  
 More options Sep 24 2012, 11:19 am
From: Harri Smått <har...@gmail.com>
Date: Mon, 24 Sep 2012 18:12:53 +0300
Local: Mon, Sep 24 2012 11:12 am
Subject: Re: [android-developers] Gradients on PNGs
Hi,

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bob  
View profile  
 More options Sep 24 2012, 2:11 pm
From: bob <b...@coolfone.comze.com>
Date: Mon, 24 Sep 2012 11:11:56 -0700 (PDT)
Local: Mon, Sep 24 2012 2:11 pm
Subject: Re: Gradients on PNGs

Maybe you are loading a bitmap with this format:

Bitmap.Config
RGB_565


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francisco Marzoa  
View profile  
 More options Oct 18 2012, 6:31 am
From: Francisco Marzoa <fmmar...@gmail.com>
Date: Thu, 18 Oct 2012 12:28:43 +0200
Local: Thurs, Oct 18 2012 6:28 am
Subject: Re: [android-developers] Re: Gradients on PNGs

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.

The obvious solution was to use RGB_8888 instead.

Best regards,

On 09/24/2012 08:11 PM, bob wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »