c#-mapscript, display Image without saving on disk and zoom

Christian Wilmes C.Wilmes at GMX.DE
Thu Jun 8 09:00:58 PDT 2006


Hi All,

I've got 2 questions about c#-mapscript:

1. Is it possible to display the image coming from the mapserver without saving it on disc before?
In the moment I only realized it with saving on disc:
            imageObj image = myMap.draw();
            image.save("test.jpeg", myMap);
            this.map.Image = Image.FromFile("test.jpeg"); 

2. I'm trying to realize a zoom, but theres the same problem again....how can I do that without saving the image. If I save the Image the zoom is correct.
In the moment my zoom-function looks like that (it doesn't work):
        public void zoomIn(Object obj, MouseEventArgs ea)
        {
            myMap.zoomPoint(2, new pointObj(ea.X, ea.Y, 0, 0), 
                this.map.Width, this.map.Height, 
                myMap.extent, 
                new rectObj(-90, -180, 90, 180, 0));
            imageObj image = myMap.draw();
            this.map.Refresh();
        }


I would be very thankful for any help!

Best Regards
Christian
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the MapServer-users mailing list