Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void HSLValueChanged()
- {
- if (PropertyChanged != null)
- PropertyChanged(this, new PropertyChangedEventArgs("Color"));
- var color = new HSLColor { Hue = this.Hue, Saturation = this.Saturation, Luminosity = this.Luminosity };
- System.Drawing.Color color1 = color;
- SetValue(ColorProperty, new System.Windows.Media.Color
- {
- A = 255,
- R = color1.R,
- G = color1.G,
- B = color1.B
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement