Krita Source Code Documentation
Loading...
Searching...
No Matches
KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType > Struct Template Reference

#include <KoAlphaMaskApplicator.h>

+ Inheritance diagram for KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >:

Public Member Functions

void applyInverseNormedFloatMask (quint8 *pixels, const float *alpha, qint32 nPixels) const override
 
void fillGrayBrushWithColor (quint8 *dst, const QRgb *brush, quint8 *brushColor, qint32 nPixels) const override
 
void fillInverseAlphaNormedFloatMaskWithColor (quint8 *pixels, const float *alpha, const quint8 *brushColor, qint32 nPixels) const override
 
- Public Member Functions inherited from KoAlphaMaskApplicatorBase
virtual ~KoAlphaMaskApplicatorBase ()
 

Detailed Description

template<typename _channels_type_, int _channels_nb_, int _alpha_pos_, typename _impl, typename EnableDummyType = void>
struct KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >

Definition at line 21 of file KoAlphaMaskApplicator.h.

Member Function Documentation

◆ applyInverseNormedFloatMask()

template<typename _channels_type_ , int _channels_nb_, int _alpha_pos_, typename _impl , typename EnableDummyType = void>
void KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >::applyInverseNormedFloatMask ( quint8 * pixels,
const float * alpha,
qint32 nPixels ) const
inlineoverridevirtual

Implements KoAlphaMaskApplicatorBase.

Definition at line 23 of file KoAlphaMaskApplicator.h.

25 {
27 _channels_type_,
28 _channels_nb_,
29 _alpha_pos_>::
30 applyInverseAlphaNormedFloatMask(pixels, alpha, nPixels);
31 }

◆ fillGrayBrushWithColor()

template<typename _channels_type_ , int _channels_nb_, int _alpha_pos_, typename _impl , typename EnableDummyType = void>
void KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >::fillGrayBrushWithColor ( quint8 * dst,
const QRgb * brush,
quint8 * brushColor,
qint32 nPixels ) const
inlineoverridevirtual

Implements KoAlphaMaskApplicatorBase.

Definition at line 44 of file KoAlphaMaskApplicator.h.

44 {
46 _channels_type_,
47 _channels_nb_,
48 _alpha_pos_>::
49 fillGrayBrushWithColor(dst, brush, brushColor, nPixels);
50 }
void fillGrayBrushWithColor(quint8 *dst, const QRgb *brush, quint8 *brushColor, qint32 nPixels) const override

References KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >::fillGrayBrushWithColor().

◆ fillInverseAlphaNormedFloatMaskWithColor()

template<typename _channels_type_ , int _channels_nb_, int _alpha_pos_, typename _impl , typename EnableDummyType = void>
void KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >::fillInverseAlphaNormedFloatMaskWithColor ( quint8 * pixels,
const float * alpha,
const quint8 * brushColor,
qint32 nPixels ) const
inlineoverridevirtual

Implements KoAlphaMaskApplicatorBase.

Definition at line 33 of file KoAlphaMaskApplicator.h.

36 {
38 _channels_type_,
39 _channels_nb_,
40 _alpha_pos_>::
41 fillInverseAlphaNormedFloatMaskWithColor(pixels, alpha, brushColor, nPixels);
42 }
void fillInverseAlphaNormedFloatMaskWithColor(quint8 *pixels, const float *alpha, const quint8 *brushColor, qint32 nPixels) const override

References KoAlphaMaskApplicator< _channels_type_, _channels_nb_, _alpha_pos_, _impl, EnableDummyType >::fillInverseAlphaNormedFloatMaskWithColor().


The documentation for this struct was generated from the following file: