QColormap Class

QColormap 클래스는 디바이스 독립적인 QColor를 디바이스 종속 픽셀 값에 매핑합니다. 더 보기...

Header: #include <QColormap>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets

공용 유형

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)

상세 설명

멤버 유형 문서

enum QColormap::Mode

이 열거형은 QColormap 디바이스 독립 RGB 값을 디바이스 종속 픽셀 값에 매핑하는 방법을 설명합니다.

Constant설명
QColormap::Direct0픽셀 값은 "트루 컬러"라고도 하는 RGB 값에서 직접 파생됩니다.
QColormap::Indexed1픽셀 값은 사용 가능한 색상 목록에 대한 인덱스를 나타냅니다(예: QColormap 은 RGB 값과 가장 일치하는 색상의 인덱스를 사용합니다).
QColormap::Gray2Indexed 와 유사하게 픽셀 값은 사용 가능한 회색 톤의 목록을 나타냅니다. QColormap 은 RGB 값의 계산된 회색 톤과 가장 일치하는 회색 톤의 인덱스를 사용합니다.

멤버 함수 문서

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

IndexedGray 모드에 대한 디바이스 컬러맵을 나타내는 색상 목록을 반환합니다. 이 함수는 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

IndexedGray 모드의 경우 컬러맵의 크기를 반환하고 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.