Make a screen shot using MATLAB and java.awt.Robot

15 次查看(过去 30 天)
I want to make a screenshot using function createScreenCapture in java.awt.Robot. I can use java.awt.Robot for mouse and keyboard control. How can I use java.awt.Robot for make a screenshot? Or maybe there is something else?
P.S. Matlab give next answer:
import java.awt.Robot; vks = Robot; s_size = get(0, 'screensize'); Buffer=vks.createScreenCapture(s_size);
No method 'createScreenCapture' with matching signature found for class 'java.awt.Robot'.
Error in mouse_drive (line 7) Buffer=vks.createScreenCapture(s_size);

回答(1 个)

Jan
Jan 2014-12-29

类别

Help CenterFile Exchange 中查找有关 Sparse Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by