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

!752

concepts.

static JTable table;

p-substance {
  concepts();
  update();
  
  addToWindow(table, jbutton("Grab image from screen", "grabFromScreen"));
  
  tablePopupMenu(table, voidfunc(JPopupMenu menu, int row) {
    final L line = rawTableLine(table, row);
    addMenuItem(menu, "Send to " + snippetWithTitle("#1005726"), r {
      sendImageToProgram((ImageIcon) line.get(1), "#1005726");
    });
  });
  
  hideConsoleIfMainProgram();
}

svoid update {
  showImageConceptsAsTable_latestFirst = true;
  table = showImageConceptsAsTable(getProgramTitle(), table);
}

svoid grabFromScreen {
  letUserMarkScreenArea(null, voidfunc(Rectangle r, BufferedImage img) {
    if (r == null) ret;
    new PNGFile(clipBufferedImage(img, r));
    update();
  });
}

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