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

20
LINES

< > BotCompany Repo | #1005344 // Shoot Random Screen Part

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (4013L/27K/91K).

1  
!752
2  
3  
static int w = 45, h = 45;
4  
5  
static ImageSurface imageSurface;
6  
7  
p {
8  
  bool firstTime = true;
9  
  while licensed {
10  
    Rectangle r = randomScreenPart(w, h);
11  
    RGBImage image = shootScreen(r);
12  
    imageSurface = showImage(image, imageSurface);
13  
    if (firstTime) {
14  
      imageSurface.setZoom(2);
15  
      packFrame(imageSurface);
16  
      firstTime = false;
17  
    }
18  
    sleepSeconds(1);
19  
  }
20  
}

Author comment

Began life as a copy of #1004983

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005344
Snippet name: Shoot Random Screen Part
Eternal ID of this version: #1005344/1
Text MD5: c83ddd5faf207c900ef35325f45e6422
Transpilation MD5: 7117f5ee8bac0cc41491b84d5870f467
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-10 01:53:59
Source code size: 406 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 463 / 541
Referenced in: [show references]