文字注解 [英] Text annotation

查看:89
本文介绍了文字注解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个文本注释,当单击鼠标时,该注释会出现在照片上,现在我想用鼠标将其拾取并移动到照片上的任何位置,任何人都可以告诉我该怎么做?

完全谢谢.. :: confused :: confused:

Hi guys,

I have a text annotation that appear on a photo when mouse clicked and for now I want to pick it up with mouse and move it any where on the photo any one can tell me how can I do that?

Thanks at all..:confused::confused:

推荐答案

非常简单,处理照片上的鼠标下移事件以获取初始位置,然后将鼠标移动事件移至得到它被移动到的地方.使用鼠标事件中的值定位包含注释的标签.
Quite simple, handle the mouse down event on the photo to get the initial position then the mouse move event to get where it is being moved to. Position the label containing the annotation using the values from the mouse events.


这篇关于文字注解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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