Exemplo n.º 1
0
 private void slider_ValueChanged(object sender, ValueChangedEventArgs <float> e)
 {
     if (sender == r_Slider)
     {
         if (prevView != null)
         {
             Color temp = prevView.Image.Color;
             temp.R = (byte)(e.Value / 100 * 255);
             prevView.Image.Color = temp;
             OnChoseTile(new TileEventArgs(prevView.ToTile()));
         }
     }
     if (sender == g_Slider)
     {
         if (prevView != null)
         {
             Color temp = prevView.Image.Color;
             temp.G = (byte)(e.Value / 100 * 255);
             prevView.Image.Color = temp;
             OnChoseTile(new TileEventArgs(prevView.ToTile()));
         }
     }
     if (sender == b_Slider)
     {
         if (prevView != null)
         {
             Color temp = prevView.Image.Color;
             temp.B = (byte)(e.Value / 100 * 255);
             prevView.Image.Color = temp;
             OnChoseTile(new TileEventArgs(prevView.ToTile()));
         }
     }
 }