Example #1
0
        private void CreateImageFromGeoControl()
        {
            var chartControl = _map;
            var skChart      = new SKGeoMap(chartControl)
            {
                Width = 900, Height = 600,
            };

            skChart.SaveImage("MapImageFromControl.png");
        }
Example #2
0
    private void CreateImageFromGeoControl()
    {
        var chartControl = (GeoMap)FindByName("geoChart");
        var skChart      = new SKGeoMap(chartControl)
        {
            Width = 900, Height = 600,
        };

        skChart.SaveImage(Path.Combine(_folderPath, "MapImageFromControl.png"));
    }
Example #3
0
    private void CreateImageFromGeoControl()
    {
        var chartControl = this.FindControl <GeoMap>("geoChart");
        var skChart      = new SKGeoMap(chartControl)
        {
            Width = 900, Height = 600,
        };

        skChart.SaveImage("MapImageFromControl.png");
    }
Example #4
0
        private void CreateImageFromGeoControl()
        {
            var chartControl = (GeoMap)FindByName("geoChart");
            var skChart      = new SKGeoMap(chartControl)
            {
                Width = 900, Height = 600,
            };

            skChart.SaveImage(
                Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "MapImageFromControl.png"));
        }