Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1033428 // testMultiResolutionCapture [does just a normal screenshot on Linux]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5565L/31K).

1  
svoid testMultiResolutionCapture() ctex {
2  
  new Robot robot;
3  
  Rectangle r = toRectangle(secondScreenBounds());
4  
  print(+r);
5  
  var mri = benchFor1Second(-> {
6  
    //sleep(30);
7  
    ret robot.createMultiResolutionScreenCapture(r);
8  
  });
9  
  pnl(mri.getResolutionVariants());
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033428
Snippet name: testMultiResolutionCapture [does just a normal screenshot on Linux]
Eternal ID of this version: #1033428/2
Text MD5: cafcdfcb1d2420bfab6a2da41bd959c6
Transpilation MD5: 01f7b242d85794ffaefc360195ce4df8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-27 13:37:33
Source code size: 280 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 266
Version history: 1 change(s)
Referenced in: [show references]