Exemple #1
0
        Bitmap Example1(int width, int height, int count)
        {
            datasGen = new MockDatasGen(width, height);
            List <DataType> datas        = datasGen.CreateMockDatas(count);
            HeatMapImage    heatMapImage = new HeatMapImage(width, height, 200, 50);
            var             sw           = new Stopwatch();

            sw.Start();
            heatMapImage.SetDatas(datas);
            sw.Stop();
            textBox1.Text += $@"Set Data, TotalSeconds{sw.Elapsed.TotalSeconds}";
            textBox1.Text += Environment.NewLine;
            return(heatMapImage.GetHeatMap());
        }
Exemple #2
0
        Bitmap Example2(int width, int height, int count)
        {
            datasGen = new MockDatasGen(width, height);
            HeatMapImage heatMapImage = new HeatMapImage(width, height, 200, 50);
            var          sw           = new Stopwatch();

            sw.Start();
            for (int i = 0; i < count; i++)
            {
                DataType data = datasGen.CreateAData();
                heatMapImage.SetAData(data);
            }
            sw.Stop();
            textBox1.Text += $@"Set Data, TotalSeconds{sw.Elapsed.TotalSeconds}";
            textBox1.Text += Environment.NewLine;
            return(heatMapImage.GetHeatMap());
        }