Script image__size_bad.m
Download Script image__size_bad.m
%%
unitScreen=get(0,'units')
screen=get(0,'ScreenSize')
unitFigure=get(gcf,'units')
x=imread('owl.png');

%%

image(x); axis off;
set(gcf,'Menubar','none','Toolbar','none')
set(gca,'position',[0,0,1,1])
pos=get(gcf,'position')
left=pos(1);
bottom=pos(2);
w=pos(3);
h=pos(4);
R=w/h;
%%

left1=670;
bottom1=100;
h1=250;
w1=R*h1;
left1=screen(3)-w1;
bottom1=screen(4)-h1;
figure('Position',[left1 bottom1 w1 h1])
image(x);
axis off;
set(gcf,'Menubar','none','Toolbar','none')
set(gca,'position',[0,0,1,1])
pos1=get(gcf,'position')
%%

left2=1;
bottom2=1;
h2=490;
w2=R*h2;
figure('Position',[left2 bottom2 w2 h2])
image(x); axis off;
set(gcf,'Menubar','none','Toolbar','none')
set(gca,'position',[0,0,1,1])
set(gcf,'Menubar','none','Toolbar','none')
pos2=get(gcf,'position')

Back