我如何获得图像的坐标 [英] how do i get the coords of an image

查看:142
本文介绍了我如何获得图像的坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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>

是否有工具我可以使用我的png图像,这将有助于我获得coords ..other对于所有州来说这将永远存在.....

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.....

推荐答案

如果您有源图像,(例如) )一个SVG文件,你可以轻松导出坐标。

If you had a source image that was, (for example) an SVG file, you could easily export the coordinates.

如果你拥有的只是静态图像,那么你最好的选择是使用WYSIWYG编辑器。

If all you have is a static image, then your best bet is to use a WYSIWYG editor.

例如,使用Dreamweaver CS5,您可以轻松地绘制形状:

For example, using Dreamweaver CS5, you can easily draw the shapes out:

我确信会有一些具有此功能的随机免费WYSIWYG编辑器。或者,您可以随时下载 Dreamweaver CS5试用版纯粹是为了完成这项任务。

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屋!

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