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

21
LINES

< > BotCompany Repo | #1005375 // Shoot Random Screen Part as 332 Image

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

Libraryless. Click here for Pure Java version (4061L/27K/92K).

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  
    image = new Image332(image).toRGB();
13  
    imageSurface = showImage(image, imageSurface);
14  
    if (firstTime) {
15  
      imageSurface.setZoom(2);
16  
      packFrame(imageSurface);
17  
      firstTime = false;
18  
    }
19  
    sleepSeconds(1);
20  
  }
21  
}

Author comment

Began life as a copy of #1005344

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: #1005375
Snippet name: Shoot Random Screen Part as 332 Image
Eternal ID of this version: #1005375/1
Text MD5: d39bcc650ebd28281950309e23222fbf
Transpilation MD5: 75bd711dd15e5ec1e893dd2ec65a6bc7
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 02:14:24
Source code size: 450 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 557 / 630
Referenced in: [show references]