On Tue, 16 Dec 2003 10:31:29 -0200, "Joao S. O. Bueno" <[EMAIL PROTECTED]> wrote:
> You could maybe just add (or ask someone to add) a "zero-out
> transparent pixels" on the layers menu.
Sigh! It is a bit frustrating for me to see that you haven't
understood what the main problem is (from my point of view). Maybe
this thread has been going on for too long... Anyway, one more try:
I do not care (yet) about clearing the transparent pixels, destroying
color data, using pre-multiplied alpha or all the (un)related things
that were mentioned in recent messages.
I care about the message that we are giving to the user about the
alpha channel: the correct way to present the alpha channel is that a
pixel with alpha=0 has an undefined color. The GIMP should be free to
keep the RGB data of transparent pixels intact or to destroy it if
necessary. Hackers may be aware of whether the GIMP will keep the RGB
data or not for such and such operation, but we should avoid adding
features that explicitely require one or the other to happen.
I think that Adam has posted a nice explanation, so I will not repeat
it. Daniel Rogers had also some positive comments in Bugzilla.
Basically, the model that we should promote is:
- layer mask => hiding mechanism, reversible
- alpha channel => pixels that are cleared have undefined RGB data,
not reversible (except for undo)
Breaking this model should be avoided, except in very special cases
(i.e. obscure features for hackers).
Gimp-developer mailing list