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

#include <KoInvertColorTransformation.h>

Static Public Member Functions

static KoColorTransformationgetTransformator (const KoColorSpace *cs)
 

Detailed Description

Definition at line 158 of file KoInvertColorTransformation.h.

Member Function Documentation

◆ getTransformator()

static KoColorTransformation * KoInvertColorTransformation::getTransformator ( const KoColorSpace * cs)
inlinestatic

Definition at line 161 of file KoInvertColorTransformation.h.

162 {
163 KoID id = cs->colorDepthId();
164 KoID modelId = cs->colorModelId();
165 if (id == Integer8BitsColorDepthID) {
166 return new KoU8InvertColorTransformer(cs);
167 } else if (id == Integer16BitsColorDepthID) {
168 return new KoU16InvertColorTransformer(cs);
169#ifdef HAVE_OPENEXR
170 } else if (id == Float16BitsColorDepthID) {
171 return new KoF16InvertColorTransformer(cs);
172#endif
173 } else {
174 if(modelId == LABAColorModelID || modelId == CMYKAColorModelID){
175 return new KoF32GenInvertColorTransformer(cs);
176 }
177 return new KoF32InvertColorTransformer(cs);
178 }
179 }
const KoID Float16BitsColorDepthID("F16", ki18n("16-bit float/channel"))
const KoID Integer8BitsColorDepthID("U8", ki18n("8-bit integer/channel"))
const KoID Integer16BitsColorDepthID("U16", ki18n("16-bit integer/channel"))
const KoID CMYKAColorModelID("CMYKA", ki18n("CMYK/Alpha"))
const KoID LABAColorModelID("LABA", ki18n("L*a*b*/Alpha"))
virtual KoID colorModelId() const =0
virtual KoID colorDepthId() const =0
Definition KoID.h:30

References CMYKAColorModelID, KoColorSpace::colorDepthId(), KoColorSpace::colorModelId(), Float16BitsColorDepthID, Integer16BitsColorDepthID, Integer8BitsColorDepthID, and LABAColorModelID.


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