screenShotRGB: Make a Screenshot using Robot Java Class

Make a Screenshot using Robot Java Class.

您现在正在关注此提交

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
file:
im = screenShotRGB; % make the screenshot
imwrite(im,'screenShot.png');
figure
image(im);
axis equal, axis tight
axis off

For more information about the Robot Java class see:
http://download.oracle.com/javase/1.4.2/docs/api/java/awt/Robot.html#createScreenCapture%28java.awt.Rectangle%29

引用格式

Enrique (2026). screenShotRGB: Make a Screenshot using Robot Java Class (https://ww2.mathworks.cn/matlabcentral/fileexchange/31383-screenshotrgb-make-a-screenshot-using-robot-java-class), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: screencapture

启发作品: Multiple Monitors Screen Capture

类别

Help CenterMATLAB Answers 中查找有关 ROS Toolbox 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0