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
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