|
Krita Source Code Documentation
|
#include <KoColorDisplayRendererInterface.h>
Inheritance diagram for KoDumbColorDisplayRenderer:Public Member Functions | |
| KoColor | approximateFromRenderedQColor (const QColor &c) const override |
| 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 | |
| qreal | maxVisibleFloatValue (const KoChannelInfo *chaninfo) const override |
| qreal | minVisibleFloatValue (const KoChannelInfo *chaninfo) const override |
| 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 99 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 40 of file KoColorDisplayRendererInterface.cpp.
References KoColor::fromQColor().
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 47 of file KoColorDisplayRendererInterface.cpp.
References KoColorSpaceRegistry::instance(), and v.
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 57 of file KoColorDisplayRendererInterface.cpp.
References toQColor(), and v.
|
overridevirtual |
getColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 80 of file KoColorDisplayRendererInterface.cpp.
References KoColorSpaceRegistry::instance(), and KoColorSpaceRegistry::rgb8().
|
static |
Definition at line 63 of file KoColorDisplayRendererInterface.cpp.
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 74 of file KoColorDisplayRendererInterface.cpp.
References KoChannelInfo::getUIMax().
|
overridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 68 of file KoColorDisplayRendererInterface.cpp.
References KoChannelInfo::getUIMin().
|
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 34 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 26 of file KoColorDisplayRendererInterface.cpp.
References KoColorSpace::convertToQImage(), KoColorConversionTransformation::internalConversionFlags(), and KoColorConversionTransformation::internalRenderingIntent().