|
Krita Source Code Documentation
|
#include <KoColorDisplayRendererInterface.h>
Inheritance diagram for KoDumbColorDisplayRenderer:Public Member Functions | |
| KoColor | approximateFromRenderedQColor (const QColor &c) const override |
| QColor | convertColorToDisplayColorSpace (KoColor c) const override |
| convertColorToDisplayColorSpace | |
| QImage | convertImageToDisplayColorSpace (const QImage source) const override |
| convertImageToDisplayColorSpace | |
| KoColor | fromHsv (int h, int s, int v, int a=255) const override |
| void | getHsv (const KoColor &srcColor, int *h, int *s, int *v, int *a=0) const override |
| const KoColorSpace * | getPaintingColorSpace () const override |
| getColorSpace | |
| KisHandlePalette | handlePaletteForDisplayColorSpace () const override |
| handlePaletteForDisplayColorSpace | |
| qreal | maxVisibleFloatValue (const KoChannelInfo *chaninfo) const override |
| qreal | minVisibleFloatValue (const KoChannelInfo *chaninfo) const override |
| QPalette | systemPaletteForDisplayColorSpace () const override |
| systemPaletteForDisplayColorSpace | |
| QColor | toQColor (const KoColor &c, bool proofToPaintColors=false) const override |
| QImage | toQImage (const KoColorSpace *srcColorSpace, const quint8 *data, QSize size, bool proofPaintColors=false) const override |
| Convert a consecutive block of pixel data to an ARGB32 QImage. | |
Public Member Functions inherited from KoColorDisplayRendererInterface | |
| KoColorDisplayRendererInterface () | |
| ~KoColorDisplayRendererInterface () override | |
Static Public Member Functions | |
| static KoColorDisplayRendererInterface * | instance () |
Additional Inherited Members | |
Signals inherited from KoColorDisplayRendererInterface | |
| void | displayConfigurationChanged () |
The default conversion class that just calls KoColor::toQColor() conversion implementation which effectively renders the color into sRGB color space.
Definition at line 127 of file KoColorDisplayRendererInterface.h.
|
overridevirtual |
This tries to approximate a rendered QColor into the KoColor of the painting color space. Please note, that in most of the cases the exact reverse transformation does not exist, so the resulting color will be only a rough approximation. Never try to do a round trip like that:
// r will never be equal to c! r = approximateFromRenderedQColor(toQColor(c));
Implements KoColorDisplayRendererInterface.
Definition at line 42 of file KoColorDisplayRendererInterface.cpp.
References KoColor::fromQColor().
|
overridevirtual |
convertColorToDisplayColorSpace
| color | – base color. |
Implements KoColorDisplayRendererInterface.
Definition at line 87 of file KoColorDisplayRendererInterface.cpp.
References KoColor::toQColor().
|
overridevirtual |
convertImageToDisplayColorSpace
| source | – image to convert. |
Implements KoColorDisplayRendererInterface.
Definition at line 92 of file KoColorDisplayRendererInterface.cpp.
References source().
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 49 of file KoColorDisplayRendererInterface.cpp.
References KoColorSpaceRegistry::instance(), and v.
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 59 of file KoColorDisplayRendererInterface.cpp.
References toQColor(), and v.
|
overridevirtual |
getColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 82 of file KoColorDisplayRendererInterface.cpp.
References KoColorSpaceRegistry::instance(), and KoColorSpaceRegistry::rgb8().
|
overridevirtual |
handlePaletteForDisplayColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 97 of file KoColorDisplayRendererInterface.cpp.
|
static |
Definition at line 65 of file KoColorDisplayRendererInterface.cpp.
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 76 of file KoColorDisplayRendererInterface.cpp.
References KoChannelInfo::getUIMax().
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 70 of file KoColorDisplayRendererInterface.cpp.
References KoChannelInfo::getUIMin().
|
overridevirtual |
systemPaletteForDisplayColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 102 of file KoColorDisplayRendererInterface.cpp.
|
overridevirtual |
Convert the color c to a custom QColor that will be displayed by the widget on screen. Please note, that the reverse conversion may simply not exist.
| proofPaintColors | optionally adjust the color data to painting gamut first |
Implements KoColorDisplayRendererInterface.
Definition at line 36 of file KoColorDisplayRendererInterface.cpp.
References KoColor::toQColor().
|
overridevirtual |
Convert a consecutive block of pixel data to an ARGB32 QImage.
| srcColorSpace | the colorspace the pixel data is in |
| data | a pointer to a byte array with color data; must cover the requested image size |
| size | defines the dimensions of the resulting image |
| proofPaintColors | optionally adjust the color data to painting gamut first |
Implements KoColorDisplayRendererInterface.
Definition at line 28 of file KoColorDisplayRendererInterface.cpp.
References KoColorSpace::convertToQImage(), KoColorConversionTransformation::internalConversionFlags(), and KoColorConversionTransformation::internalRenderingIntent().