[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Re: Problems with "embedded" transparency masks onto adj. layers
From: Dmitry Kazakov <dimula73 () gmail ! com>
Date: 2009-09-09 19:26:07
Message-ID: ae32c1ef0909091226h3a013c2agea78bfd338370897 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> 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
[Attachment #5 (text/html)]
<div class="h5"><br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: \
1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, we \
probably need to compare the current code to the code in 1.6, but<br>
there it worked perfectly. This is how the selection brush worked in \
1.6:<br></blockquote></div><br>Well, Boud, just imagine:<br><br>We have a 3x3px \
brush. It has crossed form.<br><br>It's alpha() channel looks like:<br> <font \
face="courier new,monospace"><br> 0 255 0 <br>255 255 255<br> 0 255 \
0<br><br><span style="font-family: arial,helvetica,sans-serif;">It's gray() \
channel looks like</span><br></font><br><font face="courier new,monospace"> 0 128 \
0 <br>
128 255 128<br>
0 128 0<br>
</font><br><br>Imagine we paint with this brush onto a transparency mask that \
initially looked like:<br><br><font face="courier new,monospace">100 100 100 <br> 100 \
100 100<br>100 100 100</font><br><br>In current realization we get wrong result - we \
just copy alpha() channel of the brush onto mask:<br><br><font face="courier \
new,monospace"> 0 255 0 <br> 255 255 255<br> 0 255 0</font><br><br>Right \
realization should paint like a normal brush:<br><br><font face="courier \
new,monospace">100 128 100 <br> 128 255 128<br>
100 128 100</font><br><br>That is what i mean. =)<br><br clear="all"><br>-- \
<br>Dmitry Kazakov<br>
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic