缩放图像的代码 [英] Code for Zooming an image

查看:77
本文介绍了缩放图像的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是Rudra,我正在为客户印度军队进行项目.我需要开发一个加载印度地图和各种按钮的表格. 1之外就是变焦.
您能否通过提供有关我的专业领域

Hi,
I''m Rudra, I''m working on Project for the Client Indian Army. I need to develope a form which loads India map and various buttons on it. Out of that 1 is zoom.
Can you please help me by providing code for that

推荐答案

Ah的代码来帮助我.首先,您尚未说明正在使用的GIS系统.尽管您可以使用Bing或Google,但是通常安全系统(例如军方使用的系统)要求将映射托管在它们控制的安全区域中的专用服务器上.

映射图像通常有两种格式:栅格和矢量,并使用栅格映射来显示低水平的细节(换句话说,它覆盖了整个国家,并且覆盖了几个层次).在某些时候,栅格映射让位于矢量映射,可以将其放大而不会失去保真度,这与在放大时被拉伸的栅格映射不同.

每个不错的GIS提供者都有自己的API,该API提供执行缩放所需的所有功能.阅读API文档并弄清楚那里需要什么.
Ah, my area of expertise. First of all, you haven''t stated what GIS system you are using. While you could use Bing or Google for this, typically secure systems (such as used by the military) require mapping to be hosted on dedicated servers in safe areas that they control.

Mapping imagery typically comes in two formats; raster and vector, with raster mapping being used to show low levels of detail (in other words, this covers the whole country, and down a few levels). At some point, the raster mapping gives way to vector mapping, which can be zoomed into without losing fidelity, unlike the raster mapping which is stretched while being zoomed into.

Each decent GIS provider has their own API, which provides all the functions that you need to perform the zooming. Have a read of the API documentation and figure out what you need there.


哇.缩放是如此微不足道,以至于我为印度军队感到难过.您只需以要查看的大小绘制要查看的图像部分.您将从不使用图片框,处理绘画事件以及绘制自己的图像开始.然后,您可以控制以什么尺寸绘制哪个部分.
Wow. Zoom is so trivial, that I feel bad for the Indian Army. You just draw the portion of the image you want to view, at the size you want to view it. You would start by not using a picture box, handling the paint event, and drawing your own image. Then, you can control which portion you draw, at what size.


如何绘制地图.

http://www.bing.com/maps/#JnE9LmluZGlhJTdlc3N0LjAlN2VwZy4xJmJiPTYzLjEwMDE2ODUyMDA5ODUlN2UtNzkuMDMwNjg1NDI0NSU3ZTI1Ljg1MDIxMDA4ODQyNTYlN2UtMTU0LjUyODczMjI5OTU= [L1J1YU1UJN}
上面有一个代码复杂的东西.
http://www.codeplex.com/site/search?query=bing%20maps& ac = 3 [^ ]
那里有带有表单控件的地图"的实现.
how about bing maps.

http://www.bing.com/maps/#JnE9LmluZGlhJTdlc3N0LjAlN2VwZy4xJmJiPTYzLjEwMDE2ODUyMDA5ODUlN2UtNzkuMDMwNjg1NDI0NSU3ZTI1Ljg1MDIxMDA4ODQyNTYlN2UtMTU0LjUyODczMjI5OTU=[^]

There''s a codeplex thing on it.
http://www.codeplex.com/site/search?query=bing%20maps&ac=3[^]
there are several implentations in there of "maps with form controls".


这篇关于缩放图像的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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