|
Krita Source Code Documentation
|
Inheritance diagram for KisDisplayColorConverter::Private::DisplayRenderer: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 | |
| 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 | |
| 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 | |
Private Attributes | |
| KisDisplayColorConverter * | m_displayColorConverter |
| QPointer< KoCanvasResourceProvider > | m_resourceManager |
Additional Inherited Members | |
Signals inherited from KoColorDisplayRendererInterface | |
| void | displayConfigurationChanged () |
Definition at line 179 of file kis_display_color_converter.cpp.
|
inline |
Definition at line 181 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 198 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
convertColorToDisplayColorSpace
| color | – base color. |
Implements KoColorDisplayRendererInterface.
Definition at line 230 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
convertImageToDisplayColorSpace
| source | – image to convert. |
Implements KoColorDisplayRendererInterface.
Definition at line 234 of file kis_display_color_converter.cpp.
References KisPaintDevice::convertFromQImage(), KoColorSpaceRegistry::instance(), and source().
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 202 of file kis_display_color_converter.cpp.
References v.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 206 of file kis_display_color_converter.cpp.
References v.
|
inlineoverridevirtual |
getColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 226 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
handlePaletteForDisplayColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 243 of file kis_display_color_converter.cpp.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 214 of file kis_display_color_converter.cpp.
References KoChannelInfo::getUIMax(), and KoCanvasResource::HdrExposure.
|
inlineoverridevirtual |
Implements KoColorDisplayRendererInterface.
Definition at line 210 of file kis_display_color_converter.cpp.
References KoChannelInfo::getUIMin().
|
inlineoverridevirtual |
systemPaletteForDisplayColorSpace
Implements KoColorDisplayRendererInterface.
Definition at line 247 of file kis_display_color_converter.cpp.
|
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 194 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 189 of file kis_display_color_converter.cpp.
|
private |
Definition at line 252 of file kis_display_color_converter.cpp.
|
private |
Definition at line 253 of file kis_display_color_converter.cpp.