コード例 #1
0
ファイル: ProfileDialog.cs プロジェクト: habi/pi2
        /// <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();
        }
コード例 #2
0
 /// <summary>
 /// Cconstructor.
 /// </summary>
 /// <param name="viewer"></param>
 public ProfileDialog(Pi2PictureViewer viewer)
 {
     Viewer = viewer;
     InitializeComponent();
 }