Gui , add İmage on figure

조회 수: 17 (최근 30일)
4OsT
4OsT 2013년 3월 2일
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
4OsT
4OsT 2013년 3월 2일
Note : image size [600 400]

댓글을 달려면 로그인하십시오.

채택된 답변

ChristianW
ChristianW 2013년 3월 2일
try
...
'position',[300 200 400 600],...
...
  댓글 수: 3
ChristianW
ChristianW 2013년 3월 2일
편집: ChristianW 2013년 3월 2일
try
imshow(N.image_main,'Border','tight','InitialMagnification','fit')
or create axes befor imshow
axes('units','pix','position',[0 0 400 600])
4OsT
4OsT 2013년 3월 2일
편집: 4OsT 2013년 3월 2일
thank you very much (^_^)
{imshow(N.image_main,'Border','tight','InitialMagnification','fit')}

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by