Gui , add İmage on figure

3 ビュー (過去 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