Ejemplo n.º 1
0
        /// <summary>
        /// 按照波段号画图
        /// </summary>
        /// <param name="band">波段号</param>
        private void DrawByBand(int band)
        {
            chart1.Series.Clear();
            chart1.Titles.Clear();
            HistoData histo = new HistoData(_image, band);

            if (_type == 1)
            {
                chart1.ChartAreas[0].AxisY.Maximum = histo.GetHistogramData().Max() + 1000;
                MadeChart(chart1, band, histo.GetHistogramData());
            }
            else
            {
                chart1.ChartAreas[0].AxisY.Maximum = histo.GetAccHistogramData().Max() + 1000;
                MadeChart(chart1, band, histo.GetAccHistogramData());
            }
        }