K
K
krylovsergey19992019-08-05 06:51:39
Java
krylovsergey1999, 2019-08-05 06:51:39

GWT how to take a screenshot of a part of the browser window?

I have a button that, when clicked, should take a screenshot of a part of the browser screen and then I save it on the server. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Ganin, 2019-08-05
@dohera

You need to use html2canvas, this thing renders html on a canvas. From canvas, you can make a picture and crop it in the same place.

A
Alexey Kolun, 2019-08-05
@alexkolundev

I would try using html2image https://code.google.com/archive/p/java-html2image/
maven https://mvnrepository.com/artifact/gui.ava/html2image
You can search here
https://github for usage examples. com/search?q=%3CartifactId%3Ehtml2i...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question