QColormap Class
QColormap 클래스는 디바이스 독립적인 QColor를 디바이스 종속 픽셀 값에 매핑합니다. 더 보기...
Header: | #include <QColormap> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
- 상속된 멤버를 포함한 모든 멤버 목록
- QColormap은 페인팅 클래스의 일부입니다.
공용 유형
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.