Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有大的可滚动图像,我正在使用画布绘制多条线。我想获取用户单击的该特定行的开始和结束坐标(x,y)。我怎样才能做到这一点?
您应该存储要绘制的坐标并检测与线条的碰撞。