screenShotRGB: Make a Screenshot using Robot Java Class

Version 1.0.0.0 (1,83 KB) von Enrique
Make a Screenshot using Robot Java Class.
854 Downloads
Aktualisiert 9. Mai 2011

Lizenz anzeigen

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

Zitieren als

Enrique (2025). screenShotRGB: Make a Screenshot using Robot Java Class (https://de.mathworks.com/matlabcentral/fileexchange/31383-screenshotrgb-make-a-screenshot-using-robot-java-class), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2009b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu ROS Toolbox finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: screencapture

Inspiriert: Multiple Monitors Screen Capture

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0