QColorTransform Class

QColorTransform 클래스는 색 공간 간의 변환입니다. 더 보기...

Header: #include <QColorTransform>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui

공용 함수

(since 6.4) bool isIdentity() const
QRgb map(QRgb argb) const
QRgba64 map(QRgba64 rgba64) const
(since 6.4) QRgbaFloat16 map(QRgbaFloat16 rgbafp16) const
(since 6.4) QRgbaFloat32 map(QRgbaFloat32 rgbafp32) const
QColor map(const QColor &color) const
(since 6.4) bool operator!=(const QColorTransform &ct1, const QColorTransform &ct2)
(since 6.4) bool operator==(const QColorTransform &ct1, const QColorTransform &ct2)

상세 설명

QColorTransform은 색 공간 간 변환의 인스턴스화입니다. 색상과 픽셀에 적용하여 한 색 공간에서 다른 색 공간으로 변환할 수 있습니다.

QColorTransform을 만들려면 QColorSpace::transformationToColorSpace()를 사용합니다:

QColorSpace sourceColorSpace(QColorSpace::SRgb);
QColorSpace targetColorSpace(QColorSpace::DisplayP3);
QColorTransform srgbToP3Transform = sourceColorSpace.transformationToColorSpace(targetColorSpace);

QColorTransform을 설정하려면 약간의 전처리가 필요하므로 즉석에서 생성하는 대신 자주 필요한 QColorTransform을 보관하는 것이 좋습니다.

멤버 함수 문서

[noexcept, since 6.4] bool QColorTransform::isIdentity() const

색상 변환이 아이덴티티 변환인 경우 참을 반환합니다.

이 함수는 Qt 6.4에 도입되었습니다.

QRgb QColorTransform::map(QRgb argb) const

QRgb 값에 색상 변환을 적용합니다 argb.

입력은 불투명하거나 곱하지 않아야 합니다.

QRgba64 QColorTransform::map(QRgba64 rgba64) const

QRgba64 값에 색상 변환을 적용합니다 rgba64.

입력은 불투명하거나 곱하지 않아야 합니다.

[since 6.4] QRgbaFloat16 QColorTransform::map(QRgbaFloat16 rgbafp16) const

QRgbaFloat16 값에 색상 변환을 적용합니다 rgbafp16.

입력은 불투명하거나 곱하지 않아야 합니다.

이 함수는 Qt 6.4에 도입되었습니다.

[since 6.4] QRgbaFloat32 QColorTransform::map(QRgbaFloat32 rgbafp32) const

QRgbaFloat32 값에 색상 변환을 적용합니다 rgbafp32.

입력은 불투명하거나 곱하지 않아야 합니다.

이 함수는 Qt 6.4에 도입되었습니다.

QColor QColorTransform::map(const QColor &color) const

QColor 값에 색상 변환을 적용합니다 color.

관련 비회원

[since 6.4] bool operator!=(const QColorTransform &ct1, const QColorTransform &ct2)

ct1ct2 과 동일한 변환을 정의하지 않으면 참을 반환합니다.

이 함수는 Qt 6.4에 도입되었습니다.

[since 6.4] bool operator==(const QColorTransform &ct1, const QColorTransform &ct2)

ct1ct2 과 동일한 색 변환을 정의하면 참을 반환합니다.

이 함수는 Qt 6.4에 도입되었습니다.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.