|
| void | composite (const quint8 *srcRowStart, int srcRowStride, quint8 *dstRowStart, int dstRowStride, int columns, int rows) override |
| |
| template<bool use_strength_ = use_strength, typename = typename std::enable_if<!use_strength_>::type> |
| | KisMaskingBrushCompositeOp (int dstPixelSize, int dstAlphaOffset) |
| |
| template<bool use_strength_ = use_strength, typename = typename std::enable_if<use_strength_>::type> |
| | KisMaskingBrushCompositeOp (int dstPixelSize, int dstAlphaOffset, qreal strength) |
| |
| virtual | ~KisMaskingBrushCompositeOpBase ()=default |
| |
template<typename channels_type, int composite_function, bool mask_is_alpha = false, bool use_strength = false, bool use_soft_texturing = false>
class KisMaskingBrushCompositeOp< channels_type, composite_function, mask_is_alpha, use_strength, use_soft_texturing >
Definition at line 715 of file KisMaskingBrushCompositeOp.h.
template<typename channels_type , int composite_function, bool mask_is_alpha = false, bool use_strength = false, bool use_soft_texturing = false>
| void KisMaskingBrushCompositeOp< channels_type, composite_function, mask_is_alpha, use_strength, use_soft_texturing >::composite |
( |
const quint8 * | srcRowStart, |
|
|
int | srcRowStride, |
|
|
quint8 * | dstRowStart, |
|
|
int | dstRowStride, |
|
|
int | columns, |
|
|
int | rows ) |
|
inlineoverridevirtual |
Implements KisMaskingBrushCompositeOpBase.
Definition at line 733 of file KisMaskingBrushCompositeOp.h.
736 {
738
739 for (
int y = 0;
y < rows;
y++) {
740 const quint8 *srcPtr = srcRowStart;
741 quint8 *dstPtr = dstRowStart;
742
743 for (
int x = 0;
x < columns;
x++) {
744
746
749
750 channels_type *dstDataPtr = reinterpret_cast<channels_type*>(dstPtr);
752
755 }
756
757 srcRowStart += srcRowStride;
758 dstRowStart += dstRowStride;
759 }
760 }
quint8 preprocessMask(const quint8 *pixel)
typename std::conditional< mask_is_alpha, quint8, KoGrayU8Traits::Pixel >::type MaskPixel
static _Tdst scaleToA(_T a)
References KisMaskingBrushCompositeOp< channels_type, composite_function, mask_is_alpha, use_strength, use_soft_texturing >::m_compositeFunction, KisMaskingBrushCompositeOp< channels_type, composite_function, mask_is_alpha, use_strength, use_soft_texturing >::m_dstAlphaOffset, KisMaskingBrushCompositeOp< channels_type, composite_function, mask_is_alpha, use_strength, use_soft_texturing >::m_dstPixelSize, KisMaskingBrushCompositeOp< channels_type, composite_function, mask_is_alpha, use_strength, use_soft_texturing >::preprocessMask(), and KoColorSpaceMaths< _T, _Tdst >::scaleToA().