|
Hi All
I have observed something really funny while using getframe in Matlab
R14 sp2.
Try this, run any application "Say winamp" and make sure the
application always remains on top and then run this following
I =imread('lena.jpg');
figure, imshow(I);
hold on;
M = getframe(gcf);
imshow(M.cdata);
P.N : If you donot have lena.jpg, use any other RGB image
You will notice that the getframe has even captured the winamp in
M.cdata
Really funny as the matlab help on getframe says
"Note that F = getframe; returns the contents of the current axes,
exclusive of the axis labels, title, or tick labels. F =
getframe(gcf); captures the entire interior of the current figure
window."
It doesnt say it can capture anything else on the screeen too which
is in front of it :)
Please comment
Regards
Vihang
|