![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QColorTransform class is a transformation between color spaces. More...
#include <qcolortransform.h>
Public Member Functions | |
QColorTransform () noexcept=default | |
Q_GUI_EXPORT | ~QColorTransform () |
Q_GUI_EXPORT | QColorTransform (const QColorTransform &colorTransform) noexcept |
QColorTransform (QColorTransform &&colorTransform)=default | |
QColorTransform & | operator= (const QColorTransform &other) noexcept |
void | swap (QColorTransform &other) noexcept |
Q_GUI_EXPORT bool | isIdentity () const noexcept |
Q_GUI_EXPORT QRgb | map (QRgb argb) const |
Applies the color transformation on the QRgb value argb. | |
Q_GUI_EXPORT QRgba64 | map (QRgba64 rgba64) const |
Applies the color transformation on the QRgba64 value rgba64. | |
Q_GUI_EXPORT QRgbaFloat16 | map (QRgbaFloat16 rgbafp16) const |
Applies the color transformation on the QRgbaFloat16 value rgbafp16. | |
Q_GUI_EXPORT QRgbaFloat32 | map (QRgbaFloat32 rgbafp32) const |
Applies the color transformation on the QRgbaFloat32 value rgbafp32. | |
Q_GUI_EXPORT QColor | map (const QColor &color) const |
Applies the color transformation on the QColor value color. | |
Friends | |
class | QColorSpacePrivate |
class | QColorTransformPrivate |
bool | operator== (const QColorTransform &ct1, const QColorTransform &ct2) |
bool | operator!= (const QColorTransform &ct1, const QColorTransform &ct2) |
The QColorTransform class is a transformation between color spaces.
\inmodule QtGui
QColorTransform is an instantiation of a transformation between color spaces. It can be applied on color and pixels to convert them from one color space to another.
To create a QColorTransform, use QColorSpace::transformationToColorSpace():
Setting up a QColorTransform takes some preprocessing, so keeping around QColorTransforms that you need often is recommended, instead of generating them on the fly.
Definition at line 25 of file qcolortransform.h.
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
|
default |
|
noexcept |
Definition at line 111 of file qcolortransform.cpp.
Applies the color transformation on the QColor value color.
Definition at line 241 of file qcolortransform.cpp.
Applies the color transformation on the QRgb value argb.
The input should be opaque or unpremultiplied.
Definition at line 176 of file qcolortransform.cpp.
Applies the color transformation on the QRgba64 value rgba64.
The input should be opaque or unpremultiplied.
Definition at line 191 of file qcolortransform.cpp.
QRgbaFloat16 QColorTransform::map | ( | QRgbaFloat16 | rgbafp16 | ) | const |
Applies the color transformation on the QRgbaFloat16 value rgbafp16.
The input should be opaque or unpremultiplied.
Definition at line 207 of file qcolortransform.cpp.
QRgbaFloat32 QColorTransform::map | ( | QRgbaFloat32 | rgbafp32 | ) | const |
Applies the color transformation on the QRgbaFloat32 value rgbafp32.
The input should be opaque or unpremultiplied.
Definition at line 225 of file qcolortransform.cpp.
|
inlinenoexcept |
Definition at line 32 of file qcolortransform.h.
|
inlinenoexcept |
Definition at line 39 of file qcolortransform.h.
|
friend |
Definition at line 50 of file qcolortransform.h.
|
friend |
Definition at line 48 of file qcolortransform.h.
|
friend |
Definition at line 54 of file qcolortransform.h.
|
friend |
Definition at line 55 of file qcolortransform.h.