使用imgAreaSelect限制可选图像区域 [英] Restrict selectable image area with imgAreaSelect

查看:98
本文介绍了使用imgAreaSelect限制可选图像区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用imgAreaSelect,我想限制选择时直接选择的区域.

Using imgAreaSelect, I'd like to restrict the area that is being selected directly while selecting.

其背后的原因是我显示一个图形,并且图像包括图例和轴.我只想选择图形区域,以便稍后重新加载缩放到该区域的图形.

The reason behind that is that I display a graph and the image includes the legend and the axis. I want to select only the graph area to later reload the graph zoomed on that area.

因此,当用户选择图像上的区域时,选择范围不应超出特定范围.

So when the user is selecting an area on the image, the selection should not go outside certain bounds.

这可能吗?

谢谢!

推荐答案

文档告诉我可以使用x1,x2,y1和y2设置选择区域的坐标.

The documentation tells me that you can set the coordinates of the selection area with x1, x2, y1 and y2.

这篇关于使用imgAreaSelect限制可选图像区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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