|
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 &other, float p=1.0) | |
| ~GColor () | |
| const GColor & | operator= (const GColor &other) |
| bool | operator== (const GColor &other) |
| bool | operator!= (const GColor &other) |
| GColor | ToAlphaSoild (int a) |
| 转换透明度到实色 | |
| GColor | ToGray () |
| 转换为灰度值 | |
| COLORREF | ToDWORD () 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) |
| 转换颜色为HSV顺序 | |
| GColor | PreMultiplyAlpha (float alpha) const |
| 预乘透明通道 | |
Public 属性 | |
| UINT8 | r |
| UINT8 | g |
| UINT8 | b |
| UINT8 | a |
包含rgba分量的颜色
| GColor::GColor | ( | ) |
| GColor::GColor | ( | ULONG | color | ) |
| GColor::GColor | ( | const GColor & | other, |
| float | p = 1.0 |
||
| ) |
| 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 | ) |
| GColor GColor::PreMultiplyAlpha | ( | float | alpha | ) | const |
预乘透明通道
| GColor GColor::ToComplementaryColor | ( | ) | const |
互补色
| COLORREF GColor::ToDWORD | ( | ) | const |
打包为占4字节的整数
| GColor GColor::ToGray | ( | ) |
转换为灰度值
| void GColor::ToHsvColor | ( | float & | h, |
| float & | s, | ||
| float & | v | ||
| ) |
转换颜色为HSV顺序
| UINT8 GColor::a |
| UINT8 GColor::b |
| UINT8 GColor::g |
| UINT8 GColor::r |