Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Clip "getrect" to specified axes

조회 수: 1 (최근 30일)
Dan
Dan 2012년 1월 10일
마감: Sabin 2022년 12월 19일
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개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by