Created
October 28, 2024 16:10
-
-
Save basilevs/e71e4c89c4730732e54f2959f59ae59b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Display display = Display.getDefault(); | |
final Image captureImage = new Image(display, display.getBounds().width, display.getBounds().height); | |
GC gc = new GC(display); | |
gc.copyArea(captureImage, display.getBounds().x, display.getBounds().y); | |
gc.dispose(); | |
Imagewriter.write(...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment