Krita Source Code Documentation
Loading...
Searching...
No Matches
KoU8InvertColorTransformer Class Reference

#include <KoInvertColorTransformation.h>

+ Inheritance diagram for KoU8InvertColorTransformer:

Public Member Functions

 KoU8InvertColorTransformer (const KoColorSpace *cs)
 
void transform (const quint8 *src, quint8 *dst, qint32 nPixels) const override
 
- Public Member Functions inherited from KoInvertColorTransformationT
 KoInvertColorTransformationT (const KoColorSpace *cs)
 
void transformGen (const quint8 *src, quint8 *dst, qint32 nPixels) const
 
template<typename T >
void transformI (const quint8 *src, quint8 *dst, qint32 nPixels) const
 
- Public Member Functions inherited from KoColorTransformation
virtual bool isValid () const
 
virtual int parameterId (const QString &name) const
 
virtual QList< QString > parameters () const
 
virtual void setParameter (int id, const QVariant &parameter)
 
void setParameters (const QHash< QString, QVariant > &parameters)
 
virtual ~KoColorTransformation ()
 

Additional Inherited Members

- Protected Attributes inherited from KoInvertColorTransformationT
QList< quint8 > m_channels
 

Detailed Description

Definition at line 95 of file KoInvertColorTransformation.h.

Constructor & Destructor Documentation

◆ KoU8InvertColorTransformer()

KoU8InvertColorTransformer::KoU8InvertColorTransformer ( const KoColorSpace * cs)
inline

Definition at line 97 of file KoInvertColorTransformation.h.

99 {
100 };
KoInvertColorTransformationT(const KoColorSpace *cs)

Member Function Documentation

◆ transform()

void KoU8InvertColorTransformer::transform ( const quint8 * src,
quint8 * dst,
qint32 nPixels ) const
inlineoverridevirtual

This function apply the transformation on a given number of pixels.

Parameters
srca pointer to the source pixels
dsta pointer to the destination pixels
nPixelsthe number of pixels

This function may or may not be thread safe. You need to create one KoColorTransformation per thread.

Implements KoColorTransformation.

Definition at line 102 of file KoInvertColorTransformation.h.

102 {
103 transformI<quint8>(src,dst,nPixels);
104 }

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