QRgba64 Class

QRgba64 구조체에는 64비트 RGB 색상이 포함되어 있습니다. 더 보기...

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

공용 함수

quint8 alpha8() const
quint16 alpha() const
quint8 blue8() const
quint16 blue() const
quint8 green8() const
quint16 green() const
bool isOpaque() const
bool isTransparent() const
QRgba64 premultiplied() const
quint8 red8() const
quint16 red() const
void setAlpha(quint16 alpha)
void setBlue(quint16 blue)
void setGreen(quint16 green)
void setRed(quint16 red)
uint toArgb32() const
ushort toRgb16() const
QRgba64 unpremultiplied() const
quint64 operator quint64() const
QRgba64 &operator=(quint64 rgba)

정적 공용 멤버

QRgba64 fromArgb32(uint rgb)
QRgba64 fromRgba64(quint64 c)
QRgba64 fromRgba64(quint16 r, quint16 g, quint16 b, quint16 a)
QRgba64 fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)

상세 설명

QRgba64는 4개의 16비트 컬러 채널을 포함하는 64비트 데이터 구조체입니다: 빨강, 녹색, 파랑, 알파.

더 높은 정밀도가 필요한 경우 QRgba64를 QRgb 대신 사용할 수 있습니다. 특히 미리 곱셈된 QRgba64는 알파 0을 제외한 정밀도 손실 없이 곱셈되지 않은 QRgb 에서도 작동할 수 있습니다.

QRgbQColor참조하세요 .

멤버 함수 문서

[constexpr] quint8 QRgba64::alpha8() const

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

[constexpr] quint16 QRgba64::alpha() const

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

setAlpha()도 참조하세요 .

[constexpr] quint8 QRgba64::blue8() const

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

[constexpr] quint16 QRgba64::blue() const

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

setBlue()도 참조하세요 .

[static constexpr] QRgba64 QRgba64::fromArgb32(uint rgb)

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

fromRgba()도 참조하세요 .

[static constexpr] QRgba64 QRgba64::fromRgba64(quint64 c)

cQRgba64 구조체로 반환합니다.

fromArgb32()도 참조하세요 .

[static constexpr] QRgba64 QRgba64::fromRgba64(quint16 r, quint16 g, quint16 b, quint16 a)

QRgba64 쿼드러플 (r, g, b, a)을 반환합니다.

fromRgba()도 참조하세요 .

[static constexpr] QRgba64 QRgba64::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)

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

fromArgb32()도 참조하세요 .

[constexpr] quint8 QRgba64::green8() const

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

[constexpr] quint16 QRgba64::green() const

16비트 녹색 컴포넌트를 반환합니다.

setGreen()도 참조하세요 .

[constexpr] bool QRgba64::isOpaque() const

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

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

[constexpr] bool QRgba64::isTransparent() const

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

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

[constexpr] QRgba64 QRgba64::premultiplied() const

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

unpremultiplied()도 참조하세요 .

[constexpr] quint8 QRgba64::red8() const

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

[constexpr] quint16 QRgba64::red() const

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

setRed()도 참조하세요 .

void QRgba64::setAlpha(quint16 alpha)

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

alpha()도 참조하세요 .

void QRgba64::setBlue(quint16 blue)

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

blue()도 참조하세요 .

void QRgba64::setGreen(quint16 green)

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

green()도 참조하세요 .

void QRgba64::setRed(quint16 red)

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

red()도 참조하세요 .

[constexpr] uint QRgba64::toArgb32() const

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

fromArgb32()도 참조하세요 .

[constexpr] ushort QRgba64::toRgb16() const

색상을 16비트 RGB 값으로 반환합니다.

toArgb32()도 참조하세요 .

[constexpr] QRgba64 QRgba64::unpremultiplied() const

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

premultiplied()도 참조하세요 .

[constexpr] quint64 QRgba64::operator quint64() const

색상을 64비트 부호 없는 정수로 반환합니다.

[noexcept] QRgba64 &QRgba64::operator=(quint64 rgba)

QRgba64 인스턴스에 rgba 값을 할당하고 반환합니다.

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