[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Grayscale Selections
From:       Sven Langkamp <sven.langkamp () gmail ! com>
Date:       2011-06-27 23:47:04
Message-ID: BANLkTin6qyb1YPX9E0YjY8HTeYMqx6enOQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sun, Jun 26, 2011 at 6:58 PM, Sven Langkamp <sven.langkamp@gmail.com>wrote:

> On Sun, Jun 26, 2011 at 7:27 AM, Dmitry Kazakov <dimula73@gmail.com>wrote:
>
>>
>> I have now tried the alpha()==grayChannel() by overwriting opacityU8 as
>>>
>>> quint8 KoGrayColorSpace::opacityU8(const quint8* U8_pixel) const
>>> {
>>>     return *U8_pixel;
>>> }
>>>
>>> Interesting is that gradients works correctly, but paint doesn't respect
>>> the transparent areas of the brush.
>>>
>>
>> Does it happen when you paint on the selection? Or when you paint on a
>> regular layer with selection activated? If first, I guess, we need to take a
>> look into the compositioning of an rgb color space into this special color
>> space.
>>
>
> Regular painting works. It's definitely the rgb on grayscale without alpha.
> That doesn't take the alpha channel into account.
>

The problem is that we convert the to destination colorspace when bitBlt and
by that the alpha channel gets lost. Any suggestions how that could be
solved?

[Attachment #5 (text/html)]

<div class="gmail_quote">On Sun, Jun 26, 2011 at 6:58 PM, Sven Langkamp <span \
dir="ltr">&lt;<a href="mailto:sven.langkamp@gmail.com">sven.langkamp@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> <div class="gmail_quote"><div><div></div><div \
class="h5">On Sun, Jun 26, 2011 at 7:27 AM, Dmitry Kazakov <span dir="ltr">&lt;<a \
href="mailto:dimula73@gmail.com" target="_blank">dimula73@gmail.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> <br><div class="gmail_quote"><div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="gmail_quote"><div>I have now tried the \
alpha()==grayChannel() by overwriting opacityU8 as<br>


<br>quint8 KoGrayColorSpace::opacityU8(const quint8* U8_pixel) const<br>
{<br>    return *U8_pixel;<br>}<br><br>Interesting is that gradients works correctly, \
but paint doesn&#39;t respect the transparent areas of the \
brush.<br></div></div></blockquote></div><div><br>Does it happen when you paint on \
the selection? Or when you paint on a regular layer with selection activated? If \
first, I guess, we need to take a look into the compositioning of an rgb color space \
into this special color space.<br>

</div></div></blockquote></div></div><div><br>Regular painting works. It&#39;s \
definitely the rgb on grayscale without alpha. That doesn&#39;t take the alpha \
channel into account.<br></div></div> </blockquote></div><br>The problem is that we \
convert the to destination colorspace when bitBlt and by that the alpha channel gets \
lost. Any suggestions how that could be solved?<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