private void UpdateHeatMap() { if (rectHeat == null) { return; } rectHeat.Fill = HeatMapGenerator.Generate(Beats.ToList(), TimeSpan.Zero, Duration, 100, true); }
private void UpdateHeatMap() { if (cckHeatMap.IsChecked != true) { SeekBar.Background = System.Windows.Media.Brushes.Black; } else { var timeStamps = _scriptHandler.GetScript().Select(s => s.TimeStamp).ToList(); int segments = Math.Max(20, (int)VideoPlayer.Duration.Divide(TimeSpan.FromSeconds(10))); SeekBar.Background = HeatMapGenerator.Generate(timeStamps, TimeSpan.Zero, VideoPlayer.Duration, segments, true); } }