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

17
LINES

< > BotCompany Repo | #1005679 // Marked Screenshot Classes v2

JavaX fragment (include)

concept Screenshot {
  *() {} // for persistance
  *(BufferedImage img) {
    savePNG(pngFile(), img);
  }
  
  File pngFile() {
    ret prepareProgramFile("screenshot" + id + ".png");
  }
}

concept MarkedClip {
  new Ref<Screenshot> screenshot;
  Rect positionInScreenshot;
  BWImage img;
  S description;
}

Author comment

Began life as a copy of #1005393

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: #1005679
Snippet name: Marked Screenshot Classes v2
Eternal ID of this version: #1005679/1
Text MD5: a87607057dbe5216388b69986467e99a
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-02 20:37:00
Source code size: 327 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 482 / 481
Referenced in: [show references]