Restrict selectable image area with imgAreaSelect

大城市里の小女人 提交于 2019-12-25 14:25:09

问题


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.

Is this possible?

Thanks!


回答1:


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



来源:https://stackoverflow.com/questions/27600781/restrict-selectable-image-area-with-imgareaselect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!