QRgbaFloat Class

template <typename F> class QRgbaFloat

QRgbaFloat 구조체에는 네 부분으로 구성된 RGBA 부동소수점 색상이 포함되어 있습니다. 더 보기...

Header: #include <QRgbaFloat>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
이후: Qt 6.2

공용 형

공용 함수

quint8 alpha8() const
quint16 alpha16() const
float alpha() const
float alphaNormalized() const
quint8 blue8() const
quint16 blue16() const
float blue() const
float blueNormalized() const
quint8 green8() const
quint16 green16() const
float green() const
float greenNormalized() const
bool isOpaque() const
bool isTransparent() const
QRgbaFloat<T> premultiplied() const
quint8 red8() const
quint16 red16() const
float red() const
float redNormalized() const
void setAlpha(float alpha)
void setBlue(float blue)
void setGreen(float green)
void setRed(float red)
uint toArgb32() const
QRgbaFloat<T> unpremultiplied() const

정적 공용 멤버

QRgbaFloat<T> fromArgb32(uint rgb)
QRgbaFloat<T> fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha)
QRgbaFloat<T> fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)

상세 설명

QRgb, QRgba64, QColor참조하세요 .

멤버 유형 문서

[alias] QRgbaFloat::FastType

float의 별칭입니다.

멤버 함수 문서

[constexpr] quint8 QRgbaFloat::alpha8() const

알파 채널을 8비트로 반환합니다.

[constexpr] quint16 QRgbaFloat::alpha16() const

알파 채널을 16비트 정수로 반환합니다.

[constexpr] float QRgbaFloat::alpha() const

알파 채널을 반환합니다.

setAlpha()도 참조하세요 .

[constexpr] float QRgbaFloat::alphaNormalized() const

0.0f1.0f 사이의 값으로 정규화된 알파 채널을 반환합니다.

alpha()도 참조하세요 .

[constexpr] quint8 QRgbaFloat::blue8() const

파란색 컴포넌트를 8비트로 반환합니다.

[constexpr] quint16 QRgbaFloat::blue16() const

파란색 컴포넌트를 16비트 정수로 반환합니다.

[constexpr] float QRgbaFloat::blue() const

파란색 컴포넌트를 반환합니다.

setBlue()도 참조하세요 .

[constexpr] float QRgbaFloat::blueNormalized() const

0.0f1.0f 사이의 값으로 정규화된 파란색 컴포넌트를 반환합니다.

setBlue()도 참조하세요 .

[static constexpr] QRgbaFloat<T> QRgbaFloat::fromArgb32(uint rgb)

32비트 ARGB 값 rgb 으로부터 QRgbaFloat 값을 생성합니다.

fromRgba() 및 toArgb32()도 참조하세요 .

[static constexpr] QRgbaFloat<T> QRgbaFloat::fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha)

4개의 16비트 정수 컬러 채널 red, green, bluealpha 에서 QRgbaFloat 값을 생성합니다.

fromRgba()도 참조하세요 .

[static constexpr] QRgbaFloat<T> QRgbaFloat::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)

네 개의 8비트 컬러 채널 red, green, bluealpha 에서 QRgbaFloat 값을 구성합니다.

fromArgb32()도 참조하세요 .

[constexpr] quint8 QRgbaFloat::green8() const

녹색 색상 컴포넌트를 8비트로 반환합니다.

[constexpr] quint16 QRgbaFloat::green16() const

녹색 색상 컴포넌트를 16비트 정수로 반환합니다.

[constexpr] float QRgbaFloat::green() const

초록색 컴포넌트를 반환합니다.

setGreen()도 참조하세요 .

[constexpr] float QRgbaFloat::greenNormalized() const

0.0f1.0f 사이의 값으로 정규화된 녹색 색상 컴포넌트를 반환합니다.

setGreen()도 참조하세요 .

[constexpr] bool QRgbaFloat::isOpaque() const

색상이 완전히 불투명한지 여부를 반환합니다.

isTransparent() 및 alpha()도 참조하세요 .

[constexpr] bool QRgbaFloat::isTransparent() const

색상이 완전히 투명한지 여부를 반환합니다.

isOpaque() 및 alpha()도 참조하세요 .

[constexpr] QRgbaFloat<T> QRgbaFloat::premultiplied() const

알파를 미리 곱한 색을 반환합니다.

unpremultiplied()도 참조하세요 .

[constexpr] quint8 QRgbaFloat::red8() const

빨간색 컴포넌트를 8비트로 반환합니다.

[constexpr] quint16 QRgbaFloat::red16() const

빨간색 컴포넌트를 16비트 정수로 반환합니다.

[constexpr] float QRgbaFloat::red() const

빨간색 컴포넌트를 반환합니다.

setRed()도 참조하세요 .

[constexpr] float QRgbaFloat::redNormalized() const

0.0f1.0f 사이의 값으로 정규화된 빨간색 컴포넌트를 반환합니다.

setRed()도 참조하세요 .

void QRgbaFloat::setAlpha(float alpha)

이 색상의 알파를 alpha 로 설정합니다.

alpha()도 참조하세요 .

void QRgbaFloat::setBlue(float blue)

이 색상의 파란색 구성 요소를 blue 로 설정합니다.

blue()도 참조하세요 .

void QRgbaFloat::setGreen(float green)

이 색상의 녹색 구성 요소를 green 로 설정합니다.

green()도 참조하세요 .

void QRgbaFloat::setRed(float red)

이 색상의 빨간색 구성 요소를 red 로 설정합니다.

red()도 참조하세요 .

[constexpr] uint QRgbaFloat::toArgb32() const

색상을 32비트 ARGB 값으로 반환합니다.

fromArgb32()도 참조하세요 .

[constexpr] QRgbaFloat<T> QRgbaFloat::unpremultiplied() const

알파가 곱해지지 않은 색을 반환합니다.

premultiplied()도 참조하세요 .

관련 비회원

QRgbaFloat16

16비트 부동 소수점 컬러 채널 4개가 포함된 64비트 데이터 구조입니다: 빨강, 녹색, 파랑, 알파.

QRgbaFloat32

4개의 32비트 부동 소수점 색상 채널을 포함하는 128비트 데이터 구조입니다: 빨강, 녹색, 파랑, 알파.

© 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.