/// <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); }
/// <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); }