Save Image from GMAP.Net Windows Form Component

Apr 26, 2010 at 4:28 PM

Hi,

First of all, thanks, this control is so GREAT!!!, i have a little problem, i'm generating a PDF File with the image on the control that i call "mapGIS", with the mapaGIS.ToImage() method. The control is on a Windows Form and it load the map add a route and a marker, all work fine.

Now i try to do the same thing but with a control created by code and without be visible, i mean, i need to make a lot of images of a lot of points, so i make all on code, but then i use the ".ToImage()" method, it save the image of the current state of the application, i mean it show the "form" and not the map.

The question is, do i need to put visible the user control to save the image?

Thanks for all, and take care.

 

     Iván.

Coordinator
Apr 26, 2010 at 4:39 PM
Edited Apr 26, 2010 at 5:28 PM

hey, ..well ToImage just copy/save current view from control, so yes, but no, if you use static image maker ;}

p.s. check the button 'Get Static', there is code, you can easily draw any objects on generated image in off-screen mode