QColormap Class
QColormap クラスは、デバイスに依存しない QColors をデバイスに依存するピクセル値にマップします。詳細...
ヘッダ | #include <QColormap> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
- 継承メンバを含む全メンバ一覧
- QColormapはPainting Classesの一部です。
パブリックタイプ
enum | Mode { Direct, Indexed, Gray } |
パブリック関数
QColormap(const QColormap &colormap) | |
~QColormap() | |
const QColor | colorAt(uint pixel) const |
const QList<QColor> | colormap() const |
int | depth() const |
QColormap::Mode | mode() const |
uint | pixel(const QColor &color) const |
int | size() const |
QColormap & | operator=(const QColormap &colormap) |
静的パブリックメンバ
QColormap | instance(int screen = -1) |
メンバ関数ドキュメント
QColormap::QColormap(const QColormap &colormap)
別のcolormap のコピーを作成する。
[noexcept]
QColormap::~QColormap()
カラーマップを破壊する。
const QColor QColormap::colorAt(uint pixel) const
pixel のQColor を返す。
pixel()も参照のこと 。
const QList<QColor> QColormap::colormap() const
Indexed
およびGray
モードのデバイスのカラーマップを表す色のリストを返す。この関数は、Direct
モードに対しては空のリストを返す。
size()も参照 。
int QColormap::depth() const
デバイスの深さを返します。
size()も参照 。
[static]
QColormap QColormap::instance(int screen = -1)
指定されたscreen のカラーマップを返す。screen が -1 の場合、この関数はデフォルト画面のカラーマップを返す。
QColormap::Mode QColormap::mode() const
このカラーマップのモードを返します。
QColormap::Modeも参照 。
uint QColormap::pixel(const QColor &color) const
color のデバイス依存のピクセル値を返す。
colorAt()も参照 。
int QColormap::size() const
Indexed
およびGray
モードの場合、カラーマップのサイズを返す。Direct
モードの場合は -1 を返す。
colormap()も参照 。
QColormap &QColormap::operator=(const QColormap &colormap)
与えられたcolormap をこのカラーマップに割り当て、このカラーマップへの参照を返します。
© 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.