How do I make Imfreehand noninterac​tive/undra​ggable?

How do I make Imfreehand noninteractive/undraggable?
I want to make the region undraggable after it is initially drawn.
How?

답변 (1개)

Image Analyst
Image Analyst 2014년 2월 28일

0 개 추천

You'd have to tie into the mousedown event. In there, use findobj() to find the handle to the thing you drew, or else have it available globally just after you drew it. Then when you drag the thing I think you'd have to delete it and redraw it. Not sure but there might be a more elegant higher level function than that procedure for dragging objects. I just don't know of any.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2014년 2월 28일

답변:

2014년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by