getscreen

Version 1.3.0.0 (2.69 KB) by matt dash
Replacement for getframe for multiple-monitor systems. Also takes screenshots of non-MATLAB windows.
4.1K Downloads
Updated 17 Nov 2008

View License

GETSCREEN works just like the MATLAB function getframe, but works on any monitor, not just the primary one. (Getframe gives an error if you use it on a figure displayed on your second monitor) Can also be used to take screenshots from any area of your display, whether or not it is a MATLAB figure.

Syntax is the same as getframe, and can be used to capture entire figures or axes, or a rectangular subarea of these. Can also be called using just a position vector to take a screenshot of that area of your display, regardless of whether it is a MATLAB figure or not.

Uses java.awt.robot to take screenshots, so it requires java.

Cite As

matt dash (2024). getscreen (https://www.mathworks.com/matlabcentral/fileexchange/22031-getscreen), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Convert Image Type in Help Center and MATLAB Answers
Acknowledgements

Inspired by: screencapture

Inspired: dropshadow - Drop Shadow class for plot objects

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

updated inspired by

1.0.0.0