Re: Transparency channel

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.core
Message-ID <[email protected]>
On 2 Mar 2004, David N. Welton wrote:
> I'm looking at it.
>
> *) ImageMagick chose the name OpacityQuantum for 'O', whereas 'A' in
>  GM corresponds to an OpacityMapQuantum.

Certainly ImageMagick would not want to use the same enumeration names
since then it might look like the code was copied. :-)

> *) If we use 'T' for transparency, that ought to have a
>  TransparencyMapQuantum, no?  But 'T' is equivalent to 'A' which
>  already has OpacityMapQuantum.

I prefer

  T = Transparency (zero is opaque)
  O = Opacity (zero is transparent)

> So what should the MapQuantum type be?

Since the enumerations are private, it is easy to add one more
enumeration and rename an existing enumeration for clarity.

Bob
======================================
Bob Friesenhahn
[email protected]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.