Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: snapshot not working

$
0
0
Hi,

I'm trying to get a snapshot from a map. My problem is that I tried dozen of ways but my picturebox stays desperately empty !

Thanks for any help,

Olivier
Mapwingis 4.8.8
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Dim image As New MapWinGIS.Image()
        Dim extents As MapWinGIS.Extents
        'Set extents to be the extents of the map
        extents = CType(AxMap1.Extents, MapWinGIS.Extents)
        'Take a picture of what is being displayed in map1 and store it in image
        image = CType(AxMap1.SnapShot(extents), MapWinGIS.Image)
            PictureBox1 = CType(image.Picture, PictureBox)
            PictureBox1 .Refresh()
    End Sub

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>