Info
此问题已关闭。 请重新打开它进行编辑或回答。
Clip "getrect" to specified axes
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am working with a GUIDE-developed GUI which contains a couple of axes, some buttons, and other ui elements. I'm playing around with using getrect() on one of the axes. Everything is working great aside from the fact that the cursor and dragged rectangle is allowed to operate beyond the limits of the axes. For example, once I call getrect() and the cursor changes to a crosshair I am able to drag and create the outline rectangle over a blank region of the figure.
I can easily clamp the returned values to the extents of the axes programmatically, but I would like to keep the crosshair and dragged outline from appearing outside the axes. I am specifying the target axes handle when calling getrect().
Is there a property I can set which functions like the "Clipping" property on text objects?
Using R2011b and Image Processing Toolbox 7.3
Thanks in advance for any responses / suggestions.
-- Dan
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!