コード例 #1
0
 public static byte GetByteGreen(this Color c)
 {
     return(NumericExtensions.EnsureByte(c.G * 255));
 }
コード例 #2
0
 public static byte GetByteYellow(this Color c)
 {
     return(NumericExtensions.EnsureByte((1 - c.B) * 255));
 }
コード例 #3
0
 public static byte GetByteCyan(this Color c)
 {
     return(NumericExtensions.EnsureByte((1 - c.R) * 255));
 }
コード例 #4
0
 public static byte GetByteMagenta(this Color c)
 {
     return(NumericExtensions.EnsureByte((1 - c.G) * 255));
 }
コード例 #5
0
 public static byte GetByteAlpha(this Color c)
 {
     return(NumericExtensions.EnsureByte(c.A * 255));
 }