public void DrawNFill() { //pictureBox1.Image = TargetDrawHelper.DrawTarget(shotsSerie).Bitmap // pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage; imageBox1.Image = TargetDrawHelper.DrawTarget(shotsSerie); imageBox1.FunctionalMode = ImageBox.FunctionalModeOption.Minimum; imageBox1.SizeMode = PictureBoxSizeMode.CenterImage; var sum = shotsSerie.Sum(a => a.SingleValue); var sumP = shotsSerie.Sum(a => a.Value); labSerieTotal.Text = sum.ToString() + " (" + sumP.ToString() + ") "; dataGridViewSerie.RowHeadersVisible = false; dataGridViewSerie.DataSource = shotsSerie; }
private void DrawAllTarget() { TargetIB.FunctionalMode = Emgu.CV.UI.ImageBox.FunctionalModeOption.PanAndZoom; if (true) { TargetIB.Image = TargetDrawHelper.DrawTarget(Shots); } else { var sss = (Shots.Count() / strzNaSerie) * strzNaSerie; var skip = sss; if (Shots.Count() % strzNaSerie == 0) { skip = sss - strzNaSerie; } var serie = Shots.Skip(Math.Max(0, skip)).ToList(); TargetIB.Image = TargetDrawHelper.DrawTarget(serie); } TargetIB.HideScrolls = false; }