我如何获得图像的坐标

发布于 2024-10-26 19:29:10 字数 898 浏览 2 评论 0原文

我需要在图像上创建一个热点,并且我需要有这样的东西

我有一张关于美国的图片,例如 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北方的韩爷 2024-11-02 19:29:10

如果您有一个源图像(例如)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.

岁月染过的梦 2024-11-02 19:29:10

只需复制整个页面并更改您想要更改的内容,而不是从头开始,这可能是实用的。显然,您提供的工作示例已包含所有电线,因此您无需再次制作它们。只需复制工作页面并更改它以满足您的需要。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文