mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
Cleaned up screenshot code
This commit is contained in:
parent
d52be460c6
commit
3762aed133
1 changed files with 0 additions and 2 deletions
|
|
@ -549,8 +549,6 @@ public final class client extends GameShell {
|
|||
Robot robot = new Robot(window.getGraphicsConfiguration().getDevice());
|
||||
Rectangle captureSize = new Rectangle(x, y, w, h);
|
||||
BufferedImage image = robot.createScreenCapture(captureSize);
|
||||
|
||||
// Save the BufferedImage
|
||||
File outputFile = new File(outputFolder, filename);
|
||||
ImageIO.write(image, "png", outputFile);
|
||||
} catch (IOException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue