简体   繁体   中英

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. 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 

看看Robot类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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