Problems with "embedded" transparency masks onto adj. layers

Dmitry Kazakov dimula73 at gmail.com
Wed Sep 9 21:26:07 CEST 2009


> Well, we probably need to compare the current code to the code in 1.6, but
> there it worked perfectly. This is how the selection brush worked in 1.6:
>

Well, Boud, just imagine:

We have a 3x3px brush. It has crossed form.

It's alpha() channel looks like:

 0  255  0
255 255 255
 0  255  0

It's gray() channel looks like

 0  128  0
128 255 128
 0  128  0


Imagine we paint with this brush onto a transparency mask that initially
looked like:

100 100 100
100 100 100
100 100 100

In current realization we get wrong result - we just copy alpha() channel of
the brush onto mask:

 0  255  0
255 255 255
 0  255  0

Right realization should paint like a normal brush:

100 128 100
128 255 128
100 128 100

That is what i mean. =)


-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20090909/f3e9d2c4/attachment.htm 


More information about the kimageshop mailing list