示例#1
0
 public static void FromHex(this Color @this, string hex, int alpha = 255)
 {
     @this = ColorHelper.ToColor(hex, alpha);
 }
示例#2
0
 public static void FromString(this Color @this, string @string)
 {
     @this = ColorHelper.ToColor(@string);
 }
示例#3
0
 public Color ToColor()
 {
     return(ColorHelper.ToColor(this));
 }
示例#4
0
 public static void FromCMYK(this Color @this, CMYK value)
 {
     @this = ColorHelper.ToColor(value);
 }
示例#5
0
 public static void FromHSB(this Color @this, HSB value)
 {
     @this = ColorHelper.ToColor(value);
 }