Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screenshot via Java applet

Tags:

java

c#

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!

like image 932
Alexandr Avatar asked Mar 29 '26 19:03

Alexandr


1 Answers

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 
like image 52
Chris Cudmore Avatar answered Mar 31 '26 10:03

Chris Cudmore