Gui , add İmage on figure

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 ?

 Respuesta aceptada

ChristianW
ChristianW el 2 de Mzo. de 2013

1 voto

try
...
'position',[300 200 400 600],...
...

3 comentarios

4OsT
4OsT el 2 de Mzo. de 2013
the problem isn't here :(
ChristianW
ChristianW el 2 de Mzo. de 2013
Editada: ChristianW el 2 de Mzo. de 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 el 2 de Mzo. de 2013
Editada: 4OsT el 2 de Mzo. de 2013
thank you very much (^_^)
{imshow(N.image_main,'Border','tight','InitialMagnification','fit')}

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 2 de Mzo. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by