how to add a photo in the background of an app in appdesigner
조회 수: 14 (최근 30일)
이전 댓글 표시
how can I use an image in the background instead of just using a color (the blue one)
is this possible
댓글 수: 0
채택된 답변
Melissa Williams
2019년 5월 10일
Hello,
The image component is available in App Designer as of MATLAB R2019a.
-Melissa
추가 답변 (1개)
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
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!