我如何获得图像的坐标
我需要在图像上创建一个热点,并且我需要有这样的东西
我有一张关于美国的图片,例如 this 但我需要将其变成一个热点,例如 this 但是查看源代码我看到这个
<area href="#" title="SC" shape="poly" coords="735,418, 734,419, 731,418, 731,416, 729,413, 727,411, 725,410, 723,405, 720,399, 716,398, 714,396, 713,393, 711,391, 709,390, 707,387, 704,385, 699,383, 699,382, 697,379, 696,378, 693,373, 690,373, 686,371, 684,369, 684,368, 685,366, 687,365, 687,363, 693,360, 701,356, 708,355, 724,355, 727,356, 728,360, 732,359, 745,358, 747,358, 760,366, 769,374, 764,379, 762,385, 761,391, 759,392, 758,394, 756,395, 754,398, 751,401, 749,404, 748,405, 744,408, 741,409, 742,412, 737,417, 735,418"></area>
是否有一个工具可以使用我的 png 图像来帮助我获取坐标..否则这将永远需要所有状态......
I need to create a hotspot on an image and i need to have something like this
I have a picture on the united states like this but i need to turn it into a hotspot like this but viewing the source i see this
<area href="#" title="SC" shape="poly" coords="735,418, 734,419, 731,418, 731,416, 729,413, 727,411, 725,410, 723,405, 720,399, 716,398, 714,396, 713,393, 711,391, 709,390, 707,387, 704,385, 699,383, 699,382, 697,379, 696,378, 693,373, 690,373, 686,371, 684,369, 684,368, 685,366, 687,365, 687,363, 693,360, 701,356, 708,355, 724,355, 727,356, 728,360, 732,359, 745,358, 747,358, 760,366, 769,374, 764,379, 762,385, 761,391, 759,392, 758,394, 756,395, 754,398, 751,401, 749,404, 748,405, 744,408, 741,409, 742,412, 737,417, 735,418"></area>
Is there a tool i can use my png image on that will help me get the coords ..otherwise this will take forever for all the states.....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您有一个源图像(例如)SVG 文件,则可以轻松导出坐标。
如果您只有静态图像,那么最好的选择是使用所见即所得编辑器。
例如,使用 Dreamweaver CS5,您可以轻松地绘制出形状:
我确信会有一些随机免费的所见即所得具有此功能的编辑器。或者,您也可以随时下载Dreamweaver CS5 试用版 纯粹是为了完成这个任务。
If you had a source image that was, (for example) an SVG file, you could easily export the coordinates.
If all you have is a static image, then your best bet is to use a WYSIWYG editor.
For example, using Dreamweaver CS5, you can easily draw the shapes out:
I'm sure there will be some random free WYSIWYG editor that has this functionality. Alternatively, you could always just download the trial version of Dreamweaver CS5 purely to complete this task.
只需复制整个页面并更改您想要更改的内容,而不是从头开始,这可能是实用的。显然,您提供的工作示例已包含所有电线,因此您无需再次制作它们。只需复制工作页面并更改它以满足您的需要。
It may be practical to just copy out that whole page and change what you want changed instead of starting from scratch. Obviously the working example you provided has all the cords in it already and therefore you have no need to make them again. Just copy out the working page and change it to suit your needs.