Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
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.
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 113 of file qcolortransform.cpp.
References d, and isIdentity().
Referenced by isIdentity().
Applies the color transformation on the QColor value color.
Definition at line 243 of file qcolortransform.cpp.
References QColor::Cmyk, QColorSpace::Cmyk, QColorSpacePrivate::colorModel, QColorTransformPrivate::colorSpaceIn, QColorTransformPrivate::colorSpaceOut, QColor::ExtendedRgb, QColorTransformPrivate::mapExtended(), out, QColor::Rgb, QColorSpace::Rgb, QColor::toCmyk(), and QColor::toRgb().
Applies the color transformation on the QRgb value argb.
The input should be opaque or unpremultiplied.
Definition at line 178 of file qcolortransform.cpp.
References QColorTransformPrivate::map(), qAlpha(), qBlue(), qGreen(), qRed(), and qRgba().
Referenced by convert_Indexed8_to_Grayscale8().
Applies the color transformation on the QRgba64 value rgba64.
The input should be opaque or unpremultiplied.
Definition at line 193 of file qcolortransform.cpp.
References QRgba64::alpha(), QRgba64::blue(), QRgba64::fromRgba64(), QRgba64::green(), QColorTransformPrivate::map(), and QRgba64::red().
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 209 of file qcolortransform.cpp.
References QColorTransformPrivate::mapExtended().
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 227 of file qcolortransform.cpp.
References QColorTransformPrivate::mapExtended(), and QColorVector::x.
|
inlinenoexcept |
Definition at line 32 of file qcolortransform.h.
References other().
|
inlinenoexcept |
|
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.