获取图像像素坐标相对于左上角 [英] get image pixel coordinates relative left top corner

查看:52
本文介绍了获取图像像素坐标相对于左上角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要单击相对的左上角来获取图像坐标.因此,图像的左上角是有条件的0,0,然后是第一个像素1,0 ... 2..0等.在javascript构造中有什么我可以用来获取此逻辑的东西吗?

I need to get image coordinates on click relative left top corner. So left top corner of the image is conditional 0,0 and then first pixel 1,0... 2..0 etc. Is there something in javascript construction I can use to get this logic?

推荐答案

这是一个可以帮助您的链接

here is a link that could help you out

http://www.emanueleferonato.com/2006/09/02/click-image-and-get-coordinates-with-javascript/

这篇关于获取图像像素坐标相对于左上角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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