Esempio n. 1
0
        /// <summary>
        /// Cconstructor.
        /// </summary>
        /// <param name="viewer"></param>
        public ProfileDialog(Pi2PictureViewer viewer)
        {
            chart                 = new Chart();
            chart.Dock            = DockStyle.Fill;
            chart.XAxis.Label     = "Position [pix]";
            chart.XAxis.AutoScale = true;
            chart.YAxis.Label     = "Gray value";
            chart.YAxis.AutoScale = true;
            chart.NewSeries();
            chart.LegendLocation = LegendLocation.None;
            Controls.Add(chart);

            Viewer = viewer;
            InitializeComponent();
        }
Esempio n. 2
0
 /// <summary>
 /// Cconstructor.
 /// </summary>
 /// <param name="viewer"></param>
 public ProfileDialog(Pi2PictureViewer viewer)
 {
     Viewer = viewer;
     InitializeComponent();
 }