Display Image in separate figure in app designer
조회 수: 3 (최근 30일)
이전 댓글 표시
Hey there,
I want to display an image in app desginer like I would do it in this way:
[filename,pathname] = uigetfile({'*.*';'*.jpg';'*.tif';'*.gif';'*.png'},'Select Image');
i = imread([pathname,filename]);
f1 = figure;
imshow(i)
title('Image1');
I tried many ways to do it, but it won't work.
app.f1 = uifigure;
app.im1 = uiimage(app.f1);
app.i1 = imshow(app.i,'Parent',app.im1);
Also i need a default toolbar and menu, which the figure in app designer does not have.
댓글 수: 0
채택된 답변
Image Analyst
2020년 10월 18일
You can still call figure() in your code to bring up a separate figure, separate from your main GUI that you built with App Designer.
댓글 수: 2
Image Analyst
2020년 10월 19일
Dont' specify a parent. Just rely on the new figure as being the current figure:
hFig = figure;
imshow(app.i);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!