Exemplo 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();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Cconstructor.
 /// </summary>
 /// <param name="viewer"></param>
 public ProfileDialog(Pi2PictureViewer viewer)
 {
     Viewer = viewer;
     InitializeComponent();
 }