<div class="gmail_quote">On Sun, Jun 26, 2011 at 7:27 AM, Dmitry Kazakov <span dir="ltr">&lt;<a href="mailto:dimula73@gmail.com">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 class="im"><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><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><br>