screenShotRGB: Make a Screenshot using Robot Java Class

Version (1.83 KB) by Enrique
Make a Screenshot using Robot Java Class.


Updated 9 May 2011

View License

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
im = screenShotRGB; % make the screenshot
axis equal, axis tight
axis off

For more information about the Robot Java class see:

Cite As

Enrique (2023). screenShotRGB: Make a Screenshot using Robot Java Class (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on ROS Toolbox in Help Center and MATLAB Answers

Inspired by: screencapture

Inspired: Multiple Monitors Screen Capture

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes