Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. protected void HSLValueChanged()
  2. {
  3.     if (PropertyChanged != null)
  4.         PropertyChanged(this, new PropertyChangedEventArgs("Color"));
  5.     var color = new HSLColor { Hue = this.Hue, Saturation = this.Saturation, Luminosity = this.Luminosity };
  6.     System.Drawing.Color color1 = color;
  7.     SetValue(ColorProperty, new System.Windows.Media.Color
  8.     {
  9.         A = 255,
  10.         R = color1.R,
  11.         G = color1.G,
  12.         B = color1.B
  13.     });
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement