![]() |
Qt 6.x
The Qt SDK
|
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 111 of file qcolortransform.cpp.
References d.
Applies the color transformation on the QColor value color.
Definition at line 271 of file qcolortransform.cpp.
References QColorTrc::apply(), QColorTrc::applyExtended(), QColorTrc::applyInverse(), QColorTrc::applyInverseExtended(), QColor::blueF(), QColorTransformPrivate::colorMatrix, QColorTransformPrivate::colorSpaceIn, QColorTransformPrivate::colorSpaceOut, QColor::ExtendedRgb, QColorSpacePrivate::LUT::generated, QColor::greenF(), QBasicAtomicInteger< T >::loadAcquire(), QColorSpacePrivate::lut, QColorMatrix::map(), out, QColor::redF(), QColor::Rgb, QColor::spec(), QColor::toRgb(), QColorSpacePrivate::trc, and QColorVector::x.
Applies the color transformation on the QRgb value argb.
The input should be opaque or unpremultiplied.
Definition at line 156 of file qcolortransform.cpp.
References QColorTrc::apply(), QColorTrc::applyInverse(), QColorTransformPrivate::colorMatrix, QColorTransformPrivate::colorSpaceIn, QColorTransformPrivate::colorSpaceOut, QColorSpacePrivate::LUT::generated, QBasicAtomicInteger< T >::loadAcquire(), QColorSpacePrivate::lut, QColorMatrix::map(), qAlpha(), qBlue(), qGreen(), qRed(), qRgba(), QColorSpacePrivate::trc, and QColorVector::x.
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(), QColorTrc::apply(), QColorTrc::applyInverse(), QRgba64::blue(), QColorTransformPrivate::colorMatrix, QColorTransformPrivate::colorSpaceIn, QColorTransformPrivate::colorSpaceOut, QRgba64::fromRgba64(), QColorSpacePrivate::LUT::generated, QRgba64::green(), QBasicAtomicInteger< T >::loadAcquire(), QColorSpacePrivate::lut, QColorMatrix::map(), QRgba64::red(), QColorSpacePrivate::trc, and QColorVector::x.
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 231 of file qcolortransform.cpp.
References QColorTrc::applyExtended(), QColorTrc::applyInverseExtended(), QRgbaFloat< F >::b, QColorTransformPrivate::colorMatrix, QColorTransformPrivate::colorSpaceIn, QColorTransformPrivate::colorSpaceOut, QRgbaFloat< F >::g, QColorMatrix::map(), QRgbaFloat< F >::r, and QColorSpacePrivate::trc.
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 252 of file qcolortransform.cpp.
References QColorTrc::applyExtended(), QColorTrc::applyInverseExtended(), QRgbaFloat< F >::b, QColorTransformPrivate::colorMatrix, QColorTransformPrivate::colorSpaceIn, QColorTransformPrivate::colorSpaceOut, QRgbaFloat< F >::g, QColorMatrix::map(), QRgbaFloat< F >::r, and QColorSpacePrivate::trc.
|
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.