Monday 25 February 2013

Screen Capture With Matlab

screencapture.m

clc;
r=java.awt.Robot;
tool=java.awt.Toolkit.getDefaultToolkit();
rectangle=java.awt.Rectangle(tool.getScreenSize());
image=r.createScreenCapture(rectangle);
fileh=java.io.File('scrcap.jpg');
a=javax.imageio.ImageIO.write(image,'jpg',fileh);
disp('done');

1 comment:

  1. Awesome ! This process has so many advantages and can help in improving the quality of website. I recently launched a shopping website and is going to apply both these things on it.

    ReplyDelete