CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
包含rgba分量的颜色 更多...
Public 成员函数 | |
GColor () | |
GColor (ULONG color) | |
GColor (ULONG color, UINT8 alpha) | |
GColor (UINT8 ir, UINT8 ig, UINT8 ib, UINT8 ia=255) | |
~GColor () | |
const GColor & | operator= (const GColor &other) |
bool | operator== (const GColor &other) |
bool | operator!= (const GColor &other) |
GColor & | ToAlphaSoild (int a) |
COLORREF | ToGray () |
COLORREF | ToABGR () const |
打包为占4字节的整数 | |
GColor | ToComplementaryColor () const |
GColor | DistanceColorWithHSV (float dh, float ds=0.0, float dv=0.0) const |
void | ToHsvColor (float &h, float &s, float &v) |
Public 属性 | |
UINT8 | r |
UINT8 | g |
UINT8 | b |
UINT8 | a |
包含rgba分量的颜色
GColor::GColor | ( | ) |
GColor::GColor | ( | ULONG | color | ) |
GColor::~GColor | ( | ) |
GColor GColor::DistanceColorWithHSV | ( | float | dh, |
float | ds = 0.0 , |
||
float | dv = 0.0 |
||
) | const |
bool GColor::operator!= | ( | const GColor & | other | ) |
bool GColor::operator== | ( | const GColor & | other | ) |
COLORREF GColor::ToABGR | ( | ) | const |
打包为占4字节的整数
GColor & GColor::ToAlphaSoild | ( | int | a | ) |
GColor GColor::ToComplementaryColor | ( | ) | const |
COLORREF GColor::ToGray | ( | ) |
void GColor::ToHsvColor | ( | float & | h, |
float & | s, | ||
float & | v | ||
) |
UINT8 GColor::a |
UINT8 GColor::b |
UINT8 GColor::g |
UINT8 GColor::r |