magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1997 > 10 > Visual Designer  

PNG Pong

By Lynda Weinman

Being a Thomas Boutell fan, I was a pretty excited to get this note in my mailbox recently:

I am writing with regard to Lynda Weinman's excellent article, "Pro-or-Anti-Aliasing." [Web Techniques, July 1997] Her coverage of the PNG format and anti-aliasing is correct with regard to true-color images. However, she draws the conclusion that since true-color images are often large, PNG's transparency is not practical for use on the Web.

Actually, PNG also supports 8-bit palette images, just like GIF -- and it supports transparency for these images better than GIF does: The artist can set the level of transparency for every color in the palette. If you want to have four identical versions of red, except with different levels of transparency, you can go right ahead and do that.

This approach is an effective way to improve on the very limited transparency of GIF without introducing the large file sizes of true-color PNG. It's up to you to decide how to "spend" your 256 palette entries; depending on your needs, you might use more unique colors, or more levels of transparency for colors that appear in border areas. It should not be difficult for future versions of graphics programs to make these decisions intelligently when saving an 8-bit PNG version of an image with an alpha mask.

Tom Boutell
President
Boutell.Com, Inc.

Thomas Boutell started the PNG project; it was then carried out by a group of graphics experts who met through USENET; obviously, he knows whereof he speaks.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2