QColorTransform class
QColorTransform类是颜色空间之间的转换。
Header | #include < QColorTransform > |
---|---|
qmake | QT += gui |
Inherits | |
Inherited By | |
Since | Qt 5.14 |
详细说明
QColorTransform是颜色空间之间转换的实例。它可以应用在颜色和像素上,将它们从一个颜色空间转换到另一个颜色空间。
设置QColorTransform需要一些预处理,因此建议保留经常需要的QColorTransforms,而不是动态生成它们。
公共函数
- QRgb map(QRgb argb) const 将颜色转换应用于QRgb值argb
输入应为不透明或未预乘。 - QRgba64 map(QRgba64 rgba64) const 将颜色转换应用于QRgba64值rgba64
输入应为不透明或未预乘。 - QColor map(const QColor &color) const 将颜色转换应用于QColor值颜色