Re: UI design for Tk app--PNG's or GIF's for icons?



michael.kirkham@xxxxxxxxx writes:

On Jan 30, 7:06 am, Chris McDonald <c...@xxxxxxxxxxxxxxx> wrote:

I'm confused here;

Indeed. :)

You may have seen some PNGs smoother than some GIFs, but I don't believe
that that is a property of the *encoding* format, merely the amount of
effort that the icon designers have gone to.

GIFs support only boolean transparency (a pixel is either fully
transparent or it isn't), so there can't be any real anti-aliasing
(thus jaggy edges). PNGs support an alpha channel, which allows any
pixel to be anywhere between fully transparent and fully opaque, which
blends much better. GIFs also only support 256 maximum colors in any
single image, which makes differences in colors between two pixels
much more apparent, even if they are similar (thus non-smooth
shading). PNGs support up to 65535 colors per *channel*, although Tk
only supports up to 256 per channel.

Thanks for the explanation Michael; so much to learn, so little time....

--
Chris.
.



Relevant Pages

  • Re: alpha channel
    ... Pre-multiplying normalizes that intensities of the colors in each channel. ... You will see that multiplying a transparent alpha byte of 0 against each ... Save the bitmap uncompressed ...
    (microsoft.public.win32.programmer.gdi)
  • Re: alpha channel
    ... Assuming that you wish to save this bitmap as 32bpp, ... mark each grey color pixel as transparent by setting the alpha byte to 0. ... apha channel byte. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: grey alpha?
    ... expect, so I can use weak beush to increase visibility of the upper layer, ... and a weak rubber to gradually bring back the lower layer. ... because that channel doesn't really exist. ... and really transparent for transparent. ...
    (comp.graphics.apps.gimp)
  • Sony Remote Guide Button
    ... My Sony HDTV remote has a button labeled "Guide". ... Press it and a transparent ... Lately ABC channel 4 doesn't have it. ...
    (alt.tv.tech.hdtv)