|
Krita Source Code Documentation
|
Inheritance diagram for KisDisplayColorConverter::Private::DisplayRenderer:Public Member Functions | |
| KoColor | approximateFromRenderedQColor (const QColor &c) const override |
| DisplayRenderer (KisDisplayColorConverter *displayColorConverter, KoCanvasResourceProvider *resourceManager) | |
| KoColor | fromHsv (int h, int s, int v, int a) const override |
| void | getHsv (const KoColor &srcColor, int *h, int *s, int *v, int *a) 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 | |
Private Attributes | |
| KisDisplayColorConverter * | m_displayColorConverter |
| QPointer< KoCanvasResourceProvider > | m_resourceManager |
Additional Inherited Members | |
Signals inherited from KoColorDisplayRendererInterface | |
| void | displayConfigurationChanged () |
Definition at line 171 of file kis_display_color_converter.cpp.
|
inline |
Definition at line 173 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
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 190 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 194 of file kis_display_color_converter.cpp.
References v.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 198 of file kis_display_color_converter.cpp.
References v.
|
inlineoverridevirtual |
getColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 218 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 206 of file kis_display_color_converter.cpp.
References KoChannelInfo::getUIMax(), and KoCanvasResource::HdrExposure.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 202 of file kis_display_color_converter.cpp.
References KoChannelInfo::getUIMin().
|
inlineoverridevirtual |
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 186 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
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 181 of file kis_display_color_converter.cpp.
|
private |
Definition at line 223 of file kis_display_color_converter.cpp.
|
private |
Definition at line 224 of file kis_display_color_converter.cpp.