Méthode | Description | |
---|---|---|
GetLumaFromColor ( Color color ) : double | ||
Hex2Color ( string hexColor ) : Color? |
将16进制的颜色标识转换为ARGB 表示的Color 格式为:#FFF75B44
|
|
IsLight ( Color color ) : bool | ||
RGB2Hex ( int r, int g, int b ) : string |
Méthode | Description | |
---|---|---|
GetIntFromHex ( string strHex ) : int |
public static GetLumaFromColor ( Color color ) : double | ||
color | Color | |
Résultat | double |
public static Hex2Color ( string hexColor ) : Color? | ||
hexColor | string | |
Résultat | Color? |
public static IsLight ( Color color ) : bool | ||
color | Color | |
Résultat | bool |
public static RGB2Hex ( int r, int g, int b ) : string | ||
r | int | |
g | int | |
b | int | |
Résultat | string |