C# Class JP.Utils.UI.ColorConverter

Afficher le fichier Open project: JuniperPhoton/JP.Utils.UWP

Méthodes publiques

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

Private Methods

Méthode Description
GetIntFromHex ( string strHex ) : int

Method Details

GetLumaFromColor() public static méthode

public static GetLumaFromColor ( Color color ) : double
color Color
Résultat double

Hex2Color() public static méthode

将16进制的颜色标识转换为ARGB 表示的Color 格式为:#FFF75B44
public static Hex2Color ( string hexColor ) : Color?
hexColor string
Résultat Color?

IsLight() public static méthode

public static IsLight ( Color color ) : bool
color Color
Résultat bool

RGB2Hex() public static méthode

public static RGB2Hex ( int r, int g, int b ) : string
r int
g int
b int
Résultat string