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

11 Ansichten (letzte 30 Tage)
Capture.PNG
how can I use an image in the background instead of just using a color (the blue one)
is this possible

Akzeptierte Antwort

Melissa Williams
Melissa Williams am 10 Mai 2019
Hello,
The image component is available in App Designer as of MATLAB R2019a.
-Melissa

Weitere Antworten (1)

Melissa Williams
Melissa Williams am 10 Mai 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 Kommentare
AMINE EL MOUATAMID
AMINE EL MOUATAMID am 10 Mai 2019
it is actually located on the path
AMINE EL MOUATAMID
AMINE EL MOUATAMID am 10 Mai 2019
solved , the first time I add a function not a callback
now it works
thanks

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by