|
UI_EXP COLORREF | GrayColor (COLORREF color) |
| 彩色转换为灰度颜色
|
|
UI_EXP COLORREF | HSVColor (float h, float s=1, float v=1, UINT alpha=255) |
|
UI_EXP LPCTSTR | ParseColor (LPCTSTR lpcolor, LPCTSTR end, COLORREF *out_color) |
|
UI_EXP bool | ParseStringToColor (const TCHAR *lpcolor, COLORREF *color) |
|
UI_EXP bool | ParseColorStyle (const TCHAR *lpcolor, COLORSTYLE *colors) |
|
UI_EXP BOOL | ParseHSVColor (LPCTSTR lpcolor, float *h, float *s, float *v, float *alpha) |
|
UI_EXP COLORREF | Get24PhaseColor (int i) |
|
UI_EXP void | RGBToHSV (COLORREF color, float *h, float *s, float *v) |
|
UI_EXP void | RGBToHSV (float r, float g, float b, float *h, float *s, float *v) |
| RGBToHSV HSVToRGB相互转换
|
|
UI_EXP void | HSVToRGB (float *r, float *g, float *b, float h, float s, float v) |
|
UI_EXP void | RGBToHSL (float r, float g, float b, float *h, float *s, float *l) |
| RGBToHSL和HSLToRGB相互转换
|
|
UI_EXP void | HSLToRGB (float *r, float *g, float *b, float h, float s, float l) |
|
float | Luminanace (uint8_t r, uint8_t g, uint8_t b) |
| 返回颜色明度值。算法取自国际标准。https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
|
float | ContrastRatio (COLORREF c1, COLORREF c2) |
| 对比度
|
|
COLORSTYLE | GetTextColorStyle (BOOL dark, int level) |
| 获得系统内置文本风格
|
|
COLORSTYLE | GetColorStyle (int theme, int i) |
| 获得系统内置风格
|
|
void | UpdateCustomThemeColors (int i, COLORSTYLE &colors) |
| 添加自定义主题配色方案
|
|
void | ClearCustomThemeColors (int pos) |
| 清空
|
|
BOOL | GetCustomThemeColors (int pos, COLORSTYLE &colors) |
| 获得自定义主题对应位置的颜色
|
|