Wednesday, August 10, 2005

capture the whole screen with matlab

You can get a screenshot using getframe, although you have to open a figure to do so.

scrnsz = get(0, 'ScreenSize');
f = figure('Position', [1 1 1 1], 'MenuBar', 'none');
screenshot = frame2im(getframe(gcf, scrnsz));
close(f);

No comments:

Post a Comment