Drag and drop images

10 Ansichten (letzte 30 Tage)
Chelsea Mohammed
Chelsea Mohammed am 7 Jan. 2020
Beantwortet: Ajay Kumar am 7 Jan. 2020
Hello Good day,
Following the question asked in the following link regarding drag and drop of a textbox:
How can I replace the text box with an image that can be dragged and dropped?

Antworten (1)

Ajay Kumar
Ajay Kumar am 7 Jan. 2020
You can use the axes component.
doc uiaxes
and in the startup function you could write something like this:
imshow('yourpicture.jpg','Parent',app.UIAxes);
assuming that the name of your axes is UIAxes and yourpicture.jpg is in the same directory.

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by