简体   繁体   English

通过Java applet截图

[英]Screenshot via Java applet

I'm very interested in 1 question - HOW to make a screennshot of a client desktop for futher sending to web service or to my Silverlight application. 我对1个问题非常感兴趣 - 如何对客户端桌面进行屏幕显示,以便进一步发送到Web服务或我的Silverlight应用程序。 I'm going to write an applicaton for screencasting. 我打算写一个截屏的应用程序。

Thx in advance! Thx提前!

It's been a while, but I think there's something in the Robot class that will help you. 已经有一段时间了,但我认为Robot类中有一些东西可以帮到你。

EDIT: 编辑:

From the Robot API: 从Robot API:

public BufferedImage createScreenCapture(Rectangle screenRect)

    Creates an image containing pixels read from the screen. This image does not include the mouse cursor.

    Parameters:
        screenRect - Rect to capture in screen coordinates 
    Returns:
        The captured image 

看看Robot类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM