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

34
LINES

< > BotCompany Repo | #1005728 // Image Exchange [a persistent clipboard]

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

Libraryless. Click here for Pure Java version (7840L/54K/186K).

1  
!752
2  
3  
concepts.
4  
5  
static JTable table;
6  
7  
p-substance {
8  
  concepts();
9  
  update();
10  
  
11  
  addToWindow(table, jbutton("Grab image from screen", "grabFromScreen"));
12  
  
13  
  tablePopupMenu(table, voidfunc(JPopupMenu menu, int row) {
14  
    final L line = rawTableLine(table, row);
15  
    addMenuItem(menu, "Send to " + snippetWithTitle("#1005726"), r {
16  
      sendImageToProgram((ImageIcon) line.get(1), "#1005726");
17  
    });
18  
  });
19  
  
20  
  hideConsoleIfMainProgram();
21  
}
22  
23  
svoid update {
24  
  showImageConceptsAsTable_latestFirst = true;
25  
  table = showImageConceptsAsTable(getProgramTitle(), table);
26  
}
27  
28  
svoid grabFromScreen {
29  
  letUserMarkScreenArea(null, voidfunc(Rectangle r, BufferedImage img) {
30  
    if (r == null) ret;
31  
    new PNGFile(clipBufferedImage(img, r));
32  
    update();
33  
  });
34  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005728
Snippet name: Image Exchange [a persistent clipboard]
Eternal ID of this version: #1005728/1
Text MD5: 58226355b06d1e657bc9fbf0b350530b
Transpilation MD5: a9ce5c5a726ae226ef29727cd980cbd3
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 03:03:56
Source code size: 793 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 476 / 584
Referenced in: [show references]