Gui , add İmage on figure

2 vues (au cours des 30 derniers jours)
4OsT
4OsT le 2 Mar 2013
Hi all
N.fg = figure('Units','Pix',...
'position',[300 200 600 400],...
'color',[1 1 1],...
'menubar','none',...
'name','Help',...
'numbertitle','off',...
'resize','off');
N.image_main = imread('nature.jpg');
imshow(N.image_main)
when I do this, the edges is blank.
How to add background picture ?
  1 commentaire
4OsT
4OsT le 2 Mar 2013
Note : image size [600 400]

Connectez-vous pour commenter.

Réponse acceptée

ChristianW
ChristianW le 2 Mar 2013
try
...
'position',[300 200 400 600],...
...
  3 commentaires
ChristianW
ChristianW le 2 Mar 2013
Modifié(e) : ChristianW le 2 Mar 2013
try
imshow(N.image_main,'Border','tight','InitialMagnification','fit')
or create axes befor imshow
axes('units','pix','position',[0 0 400 600])
4OsT
4OsT le 2 Mar 2013
Modifié(e) : 4OsT le 2 Mar 2013
thank you very much (^_^)
{imshow(N.image_main,'Border','tight','InitialMagnification','fit')}

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by