snap the screen

matlab mex file to snap the screen
1.6K Downloads
Updated 19 Dec 2005

No License

function a=screensnap(b)
% screensnap is a mex file to snap the screen
% the input b is double data
% when b=0,the snapped screen excluding the matlab window
% else, the snapped screen including the matlab window
% compile to use>> mex screensnap.c user32.lib gdi32.lib
% usage:1, >>a=screensnap(0) %exclude the matlab window
% >>imshow(a);
% 2, >>a=screensnap(1); %include the matlab window
% >> imshow(a);
% designed by darnshong
% chenzushang@sina.com http://darnshong.52blog.net
% 2005-12-18

Cite As

Darnshong chen (2026). snap the screen (https://www.mathworks.com/matlabcentral/fileexchange/9393-snap-the-screen), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Image Processing Toolbox in Help Center and MATLAB Answers

screensnap/

Version Published Release Notes
1.0.0.0