示例#1
0
 public static string ToRGBA(this Color @this)
 {
     return(ColorHelper.RGBA(@this));
 }
示例#2
0
 public static string ToHEX(this Color @this)
 {
     return(ColorHelper.ToHEX(@this));
 }
示例#3
0
 public static void FromHex(this Color @this, string hex, int alpha = 255)
 {
     @this = ColorHelper.ToColor(hex, alpha);
 }
示例#4
0
 public static void FromCMYK(this Color @this, CMYK value)
 {
     @this = ColorHelper.ToColor(value);
 }
示例#5
0
 public static CMYK ToCMYK(this Color @this)
 {
     return(ColorHelper.ToCMYK(@this));
 }
示例#6
0
 public Color ToColor()
 {
     return(ColorHelper.ToColor(this));
 }
示例#7
0
 public CMYK(Color color)
 {
     this = ColorHelper.ToCMYK(color);
 }
示例#8
0
 public HSB(Color color)
 {
     this = ColorHelper.ToHSB(color);
 }
示例#9
0
 public static HSB ToHSB(this Color @this)
 {
     return(ColorHelper.ToHSB(@this));
 }
示例#10
0
 public static void FromHSB(this Color @this, HSB value)
 {
     @this = ColorHelper.ToColor(value);
 }