Ejemplo n.º 1
0
 /// <summary>
 /// Returns the slider value at the specified location on the specified slider (trackbar).
 /// </summary>
 /// <param name="slider">The slider whose value should be obtained.</param>
 /// <param name="x">The relative x-coordinate on the slider (for horizontal oriented sliders).</param>
 /// <param name="y">The relative y-coordinate on the slider (for vertical oriented sliders).</param>
 public int PointToValue(TrackBar slider, int x, int y)
 {
     return SliderValue.FromPoint(slider, x, y);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the location of the specified value on the specified slider (trackbar).
 /// </summary>
 /// /// <param name="slider">The slider whose value location should be obtained.</param>
 /// <param name="value">The value of the slider.</param>
 public Point ValueToPoint(TrackBar slider, int value)
 {
     return SliderValue.ToPoint(slider, value);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the slider value at the specified location on the specified slider (trackbar).
 /// </summary>
 /// <param name="slider">The slider whose value should be obtained.</param>
 /// <param name="location">The relative x- and y-coordinates on the slider.</param>
 public int PointToValue(TrackBar slider, Point location)
 {
     return SliderValue.FromPoint(slider, location.X, location.Y);
 }