Screenshot Using Java Applet

I am very interested in 1 question - HOW to take a screenshot of the client’s desktop for further sending to a web service or Silverlight application. I am going to write a screencasting application.

thanks in advance!

+3
source share
2 answers

It has been a while, but I think something in the Robot class will help you.

EDIT:

In 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 
+2
source

Take a look at the Robot class.

-1
source

Source: https://habr.com/ru/post/1733553/


All Articles