how to add a photo in the background of an app in appdesigner
7 views (last 30 days)
Show older comments
AMINE EL MOUATAMID
on 7 May 2019
Commented: AMINE EL MOUATAMID
on 10 May 2019
![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218453/Capture.png)
how can I use an image in the background instead of just using a color (the blue one)
is this possible
0 Comments
Accepted Answer
Melissa Williams
on 10 May 2019
Hello,
The image component is available in App Designer as of MATLAB R2019a.
-Melissa
More Answers (1)
Melissa Williams
on 10 May 2019
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 Comments
See Also
Categories
Find more on Explore and Edit Images with Image Viewer App in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!