QtBase  v6.3.1
Public Member Functions | Friends | List of all members
QColorTransform Class Reference

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
 
QColorTransformoperator= (const QColorTransform &other) noexcept
 
void swap (QColorTransform &other) noexcept
 
Q_GUI_EXPORT QRgb map (QRgb argb) const
 
Q_GUI_EXPORT QRgba64 map (QRgba64 rgba64) const
 
Q_GUI_EXPORT QColor map (const QColor &color) const
 

Friends

class QColorSpace
 
class QColorSpacePrivate
 
class QColorTransformPrivate
 
class QImage
 

Detailed Description

The QColorTransform class is a transformation between color spaces.

Since
5.14

\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 55 of file qcolortransform.h.

Constructor & Destructor Documentation

◆ QColorTransform() [1/3]

QColorTransform::QColorTransform ( )
defaultnoexcept

◆ ~QColorTransform()

QColorTransform::~QColorTransform ( )
default

◆ QColorTransform() [2/3]

QColorTransform::QColorTransform ( const QColorTransform colorTransform)
defaultnoexcept

◆ QColorTransform() [3/3]

QColorTransform::QColorTransform ( QColorTransform &&  colorTransform)
default

Member Function Documentation

◆ map() [1/3]

QColor QColorTransform::map ( const QColor color) const

Applies the color transformation on the QColor value color.

Definition at line 209 of file qcolortransform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ map() [2/3]

QRgb QColorTransform::map ( QRgb  argb) const

Applies the color transformation on the QRgb value argb.

The input should be opaque or unpremultiplied.

Definition at line 148 of file qcolortransform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ map() [3/3]

QRgba64 QColorTransform::map ( QRgba64  rgba64) const

Applies the color transformation on the QRgba64 value rgba64.

The input should be opaque or unpremultiplied.

Definition at line 179 of file qcolortransform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

QColorTransform& QColorTransform::operator= ( const QColorTransform other)
inlinenoexcept

Definition at line 62 of file qcolortransform.h.

Here is the call graph for this function:

◆ swap()

void QColorTransform::swap ( QColorTransform other)
inlinenoexcept

Definition at line 69 of file qcolortransform.h.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ QColorSpace

friend class QColorSpace
friend

Definition at line 76 of file qcolortransform.h.

◆ QColorSpacePrivate

friend class QColorSpacePrivate
friend

Definition at line 77 of file qcolortransform.h.

◆ QColorTransformPrivate

friend class QColorTransformPrivate
friend

Definition at line 78 of file qcolortransform.h.

◆ QImage

friend class QImage
friend

Definition at line 79 of file qcolortransform.h.


The documentation for this class was generated from the following files: