开发者

Screenshot via Java applet

开发者 https://www.devze.com 2022-12-20 13:25 出处:网络
I开发者_如何学Python\'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.

I开发者_如何学Python'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. I'm going to write an applicaton for screencasting.

Thx in advance!


It's been a while, but I think there's something in the Robot class that will help you.

EDIT:

From the 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 


Look at the Robot class.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号