public static byte GetByteGreen(this Color c) { return(NumericExtensions.EnsureByte(c.G * 255)); }
public static byte GetByteYellow(this Color c) { return(NumericExtensions.EnsureByte((1 - c.B) * 255)); }
public static byte GetByteCyan(this Color c) { return(NumericExtensions.EnsureByte((1 - c.R) * 255)); }
public static byte GetByteMagenta(this Color c) { return(NumericExtensions.EnsureByte((1 - c.G) * 255)); }
public static byte GetByteAlpha(this Color c) { return(NumericExtensions.EnsureByte(c.A * 255)); }