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

15
LINES

< > BotCompany Repo | #1006520 // Screen Lens

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

Libraryless. Click here for Pure Java version (5590L/39K/132K).

!7

static double sleep = 0.2;
static int w = 300, h = 300;
static ImageSurface is;

p-substance {
  is = alwaysOnTop(showImage(new RGBImage(w, h, Color.white;
  hideConsole(;
  installTimer(is, toMS(sleep), r {
    Rect r = intersectWithScreen(rectAround(new Pt(mouseLocation()), w, h));
    BufferedImage img = shootScreen2(r);
    is.setImage(img);
  });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006520
Snippet name: Screen Lens
Eternal ID of this version: #1006520/1
Text MD5: 38f3ea6e5207d6bc0b026a2983b53515
Transpilation MD5: 8301831c602e04900f2493d4955bab52
Author: stefan
Category: javax / gui / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-14 18:05:23
Source code size: 373 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 528 / 663
Referenced in: [show references]