Solution for the grayscale selections

Sven Langkamp sven.langkamp at gmail.com
Tue Sep 25 18:34:25 UTC 2012


On Tue, Sep 25, 2012 at 6:49 PM, Dmitry Kazakov <dimula73 at gmail.com> wrote:

>
>
> On Tue, Sep 25, 2012 at 8:36 PM, Sven Langkamp <sven.langkamp at gmail.com>wrote:
>
>>
>> So what do you think of it?
>>
>>
>> If we make a few assumptions that:
>> -source and destination colorspace are the same colorspace, except that
>> the destination doesn't have the alpha channel
>> -source alpha is the last channel so RGBA
>>
>
> The question is, how are we going to tell paint ops to use a different
> (RGBA) colorspace instead of a value returned by
> KisPaintDevice::colorSpace() that will return RGB in this very case? That
> is the point where Boud doesn't agree. I have already got a small draft of
> a composite op you described and it works quite well. But we need some way
> for the paint ops to prepare data with that alpha channel for it. That is
> the problem.
>

Check if the colorspace has an alpha channel. If there is no alpha channel,
assume that the source has an alpha channel. If you know that it's after
the color channel, you can easily find it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120925/dcaad44a/attachment-0001.html>


More information about the kimageshop mailing list