ScreenCapture - screenshot of component, figure or screen

ScreenCapture gets a screen-capture image of any Matlab GUI handle, or specified screen area rectangle

https://UndocumentedMatlab.com/articles/screencapture-utility

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Yair Altman (2026). ScreenCapture - screenshot of component, figure or screen (https://www.mathworks.com/matlabcentral/fileexchange/24323-screencapture-screenshot-of-component-figure-or-screen), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Printing and Saving in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.20.0

Fixed clipboard export to support transparent and gray-scale images

Download
1.19.0

added copyright reference to imclipboard

Download
1.19.0-0

Fixed clipboard capture on R2022a onward (reported by John Mullins)

Download
1.18.0

Fixed Y coordinates of full-screen capture; avoid needless figure focus

Download
1.17.0

Fix annoying warning about JavaFrame property becoming obsolete someday (yes, we know...)

Download
1.16.0

Fix for deployes application suggested by David Bartholomew

Download
1.15.0

Added the 'printer' target

Download
1.14.0

Fix for saving GIF files

Download
1.13.0

Fixes for R2014b

Download
1.12.0

Fixed bug when capturing interactive selection; only enable image formats when saving to an unspecified file via uiputfile

Download
1.11.0

Fixed bug in capture of non-square image; fixes for Win64

Download
1.9.0

(a more prominent acknowledgement of Jiro's imclipboard tool on the FEX page) - no changes to the actual files

Download
1.8.0

FEX page credit to Jiro Doke's imclipboard utility

Download
1.7.0

Fixed capture of Desktop (root); enabled rbbox anywhere on desktop (not necesarily in a Matlab figure); enabled output to clipboard (based on Jiro Doke's imclipboard utility); edge-case fixes; added Java compatibility check

Download
1.5.0

Capture current object if w=h=0 (clicking a single point); extra input args sanity checks; fix for docked windows; include axes labels & ticks by default when capturing axes; use data-units position vector when capturing images; many edge-case fixes

Download
1.4.0

another performance boost (thanks to Jan Simon); some compatibility fixes for Matlab 6.5 (untested)

Download
1.3.0

updated attached screenshot with explanatory notes

Download
1.1.0

Handle missing output format; performance boost (thanks to Urs); fix minor root-handle bug; added toolbar button option

Download
1.0.0

Download