从C#应用程序内的浏览器组件窗口保存google map [英] saving google map from a browser component window inside a c# application

查看:258
本文介绍了从C#应用程序内的浏览器组件窗口保存google map的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Google地图保存到网页中的图像中.
我在搜索的时候得到了这个程序.
http://www.codres.de/downloads/gms.exe [

I wanted to save the google map into an image from a webpage.
while i was searching for that i got this program.
http://www.codres.de/downloads/gms.exe[^]

besides other alternatives like print screen i wanted to use a program or map api which can save a specified dimension of google map instead of the screen.

i have used browser component in c# for http access and for displaying certain webpages.

I want to know whether there are options to capture the browser screen to image using any c# functionality or even the browser component would have given such options. just a guess.

i would like to have answers, suggestions on how to capture the map with custom dimension and zoom size to an image.

推荐答案

这些地图通常由平铺"组成256x256像素.缩放级别为0时,只有一个图块显示整个世界.对于每个缩放级别,每个尺寸的平铺数量都会增加一倍.
看看"
GMap.NET-适用于Windows表单和演示文稿 [
Those maps consist of "tiles", typically 256x256 pixels. At zoom level 0, there is one single tile showing the whole world. With each zoom level, the number of tiles per dimension doubles.
Take a look at "GMap.NET - Great Maps for Windows Forms and Presentation[^]", it can download and store tiles from many sources.


webbrowser组件未捕获
但是您可以通过 webbrowser.Document
访问当前文档的成员 您可以通过 webClient.DownloadFile
下载当前文档中的图像 __________________________
要进行测试,请打开地图 maps.google.com ,然后查看此

http: //mt1.google.com/vt/lyrs=m@174000000&hl=zh-CN&src=app&x=3&y=6&z=4&s=Galileo [
webbrowser component have not capture
but you can access the member of current document by webbrowser.Document
and you can download image in current document by webClient.DownloadFile
__________________________
for test open map maps.google.com and then see this

http://mt1.google.com/vt/lyrs=m@174000000&hl=en&src=app&x=3&y=6&z=4&s=Galileo[^]


这篇关于从C#应用程序内的浏览器组件窗口保存google map的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆