필터 지우기
필터 지우기

how to add a photo in the background of an app in appdesigner

조회 수: 14 (최근 30일)
Capture.PNG
how can I use an image in the background instead of just using a color (the blue one)
is this possible

채택된 답변

Melissa Williams
Melissa Williams 2019년 5월 10일
Hello,
The image component is available in App Designer as of MATLAB R2019a.
-Melissa

추가 답변 (1개)

Melissa Williams
Melissa Williams 2019년 5월 10일
You can put an axes as the background for your app and add a startup function to populate it with your image file.
function startupFcn(app)
myImage = imread('peppers.png');
image(app.UIAxes, myImage);
end
You will want to set UIAxes title, xLabel, yLabel to blank in the Property Editor on the lower right. And XTick and YTicks = []
Best of luck.
  댓글 수: 5
AMINE EL MOUATAMID
AMINE EL MOUATAMID 2019년 5월 10일
it is actually located on the path
AMINE EL MOUATAMID
AMINE EL MOUATAMID 2019년 5월 10일
solved , the first time I add a function not a callback
now it works
thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by