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).

!752

static int w = 45, h = 45;

static ImageSurface imageSurface;

p {
  bool firstTime = true;
  while licensed {
    Rectangle r = randomScreenPart(w, h);
    RGBImage image = shootScreen(r);
    image = new Image332(image).toRGB();
    imageSurface = showImage(image, imageSurface);
    if (firstTime) {
      imageSurface.setZoom(2);
      packFrame(imageSurface);
      firstTime = false;
    }
    sleepSeconds(1);
  }
}

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: 556 / 628
Referenced in: [show references]