Code covered by the BSD License  

Highlights from
screenShotRGB: Make a Screenshot using Robot Java Class

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 1.83 KB File ID: #31383

screenShotRGB: Make a Screenshot using Robot Java Class

by Enrique

 

09 May 2011

Make a Screenshot using Robot Java Class.

| Watch this File

File Information
Description

Creates an RGB color image with 'uint8' class elements read from the screen. You can define a rectangle to make the capture.
The function uses the Java class 'Robot' to do the screenshot.
For example, make a screenshot of the entire screen, plot and save it to a
file:
   im = screenShotRGB; % make the screenshot
   imwrite(im,'screenShot.png');
   figure
   image(im);
   axis equal, axis tight
   axis off

For more information about the Robot Java class see:
http://download.oracle.com/javase/1.4.2/docs/api/java/awt/Robot.html#createScreenCapture%28java.awt.Rectangle%29

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
screencapture
This submission has inspired the following:
Multiple Monitors Screen Capture

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
screenshot Enrique 10 May 2011 15:55:01
screen capture Enrique 10 May 2011 15:55:01
screen Enrique 10 May 2011 15:55:01
screenshot charles lury 19 Mar 2012 07:19:23

Contact us at files@mathworks.com