7#ifndef _KOCOMPOSITEOPOVER_H_
8#define _KOCOMPOSITEOPOVER_H_
12#include <klocalizedstring.h>
14template<
class _CSTraits,
int channel>
21 const QBitArray & channelFlags) {
22 if (channel != _CSTraits::alpha_pos && (allChannelFlags || channelFlags.testBit(channel)))
28template<
class _CSTraits>
42template<
class _CSTraits>
63 const QBitArray & channelFlags) {
65 for (
int i = 0; (
uint)i < _CSTraits::channels_nb; i++) {
66 if (i != _CSTraits::alpha_pos && (allChannelFlags || channelFlags.testBit(i)))
#define NATIVE_OPACITY_OPAQUE
const QString COMPOSITE_OVER
static _T blend(_T a, _T b, _T alpha)
static void composeColorChannels(channels_type srcBlend, const channels_type *srcN, channels_type *dstN, bool allChannelFlags, const QBitArray &channelFlags)
_CSTraits::channels_type channels_type
static channels_type selectAlpha(channels_type srcAlpha, channels_type dstAlpha)
KoCompositeOpOver(const KoColorSpace *cs)
_CSTraits::channels_type channels_type
static void composeColorChannels(channels_type, const channels_type *, channels_type *, bool, const QBitArray &)
_CSTraits::channels_type channels_type
static void composeColorChannels(channels_type srcBlend, const channels_type *srcN, channels_type *dstN, bool allChannelFlags, const QBitArray &channelFlags)
static QString categoryMix()