Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Clip "getrect" to specified axes

1 visualización (últimos 30 días)
Dan
Dan el 10 de En. de 2012
Cerrada: Sabin el 19 de Dic. de 2022
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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by