% GETSCREEN captures the screen and returns a struct that could be used to
% make videos or written to an image file using the imwrite.
% For example:
% a = getscreen
% imwrite(a.cdata,'screen.jpg');
% To make a video
% vidObj = VideoWriter('Testvideo.avi');
% open(vidObj);
% for n = 1:100
% image = getframe(gcf);
% writeVideo(vidObj,image);
% end
% close(vidObj)
引用格式
Lateef Adewale Kareem (2024). getscreen (https://www.mathworks.com/matlabcentral/fileexchange/66185-getscreen), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2012b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
在 Help Center 和 MATLAB Answers 中查找有关 Animation 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |