/// <summary> /// Updates the color value in an inherited class. /// </summary> protected override void UpdateValue() { QuantumType gray = Quantum.Scale(Shade); Value.R = gray; Value.G = gray; Value.B = gray; }
private ColorGray(MagickColor color) : base(color) { _Shade = Quantum.Scale(color.R); }
/// <summary> /// Updates the color value in an inherited class. /// </summary> protected override void UpdateValue() { Value.R = Quantum.Scale(_Y + 1.13980 * _V); Value.G = Quantum.Scale(_Y - (0.39380 * _U) - (0.58050 * _V)); Value.B = Quantum.Scale(_Y + 2.02790 * _U); }