QRgbaFloat Class
template <typename F> class QRgbaFloatQRgbaFloat 構造体には、4 部分の RGBA 浮動小数点カラーが含まれます。詳細...
ヘッダー | #include <QRgbaFloat> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
以来: | Qt 6.2 |
- 継承されたメンバを含むすべてのメンバの一覧
- QRgbaFloatはペイントクラスの一部です。
パブリックタイプ
パブリック関数
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) |
関連する非メンバー
メンバ関数ドキュメント
[constexpr]
quint8 QRgbaFloat::alpha8() const
アルファチャンネルを8ビットで返します。
[constexpr]
quint16 QRgbaFloat::alpha16() const
アルファチャンネルを 16 ビット整数で返します。
[constexpr]
float QRgbaFloat::alpha() const
アルファチャンネルを返します。
setAlpha()も参照 ください。
[constexpr]
float QRgbaFloat::alphaNormalized() const
0.0f
から1.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.0f
から1.0f
までの値で正規化した青色成分を返します。
setBlue()も参照 。
[static constexpr]
QRgbaFloat<T> QRgbaFloat::fromArgb32(uint rgb)
32 ビット ARGB 値rgb からQRgbaFloat 値を構築する。
[static constexpr]
QRgbaFloat<T> QRgbaFloat::fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha)
4 つの 16 ビット整数カラーチャンネルred,green,blue,alpha からQRgbaFloat を構築する。
fromRgba()も参照 。
[static constexpr]
QRgbaFloat<T> QRgbaFloat::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)
4つの8ビットカラーチャンネルred,green,blue,alpha から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.0f
と1.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.0f
から1.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()も参照 。
© 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.