在图像上方动态放置按钮 [英] Dynamically Placing Buttons on Top of Image

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

问题描述

我想显示建筑物布局的图像.然后,我想在图像顶部动态放置按钮或可见热点,以指定某些资产的位置.理想情况下,我将能够在按钮中包含文本,从而为用户唯一地标识每个按钮.然后,我希望能够在用户单击任意一个按钮时进行回发.实际上,我正在寻找与Google地图类似的东西,但我使用的是自己的建筑布局.我不确定从哪里开始.

I''m wanting to display an image of a building''s layout. Then I want to dynamically place buttons or visible hotspots on top of the image to designate where certain assets are located. Ideally, I would be able to have text in the buttons to identify each button uniquely to the user. Then, I want to be able to do a postback when the user clicks on any one of the buttons. Effectively, I''m looking for something similar to Google maps but where I''m using my own building layout instead. I''m not sure where to even start.

推荐答案

我以前做过类似的事情.我相信这是我用作参考的文章.比起初想做的要容易.

中的ImageMap和HotSpots. NET [ ^ ]
I''ve done something similar before. I believe this is the article I used as a reference. It is easier than you would think at first to do.

ImageMap and HotSpots in .NET[^]


这篇关于在图像上方动态放置按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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