QRgba64 Class
QRgba64 構造体には、64 ビット RGB カラーが含まれます。詳細...
ヘッダー | #include <QRgba64> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
- 継承メンバを含む全メンバ一覧
- QRgba64は、Painting Classesの一部です。
パブリック関数
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 。
メンバ関数ドキュメント
[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)
c をQRgba64 構造体として返す。
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)
4つの8ビットカラーチャンネルred,green,blue,alpha から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.