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

32
LINES

< > BotCompany Repo | #1005530 // PIF [Persistent Image Finder] Classes

JavaX fragment (include)

1  
concept Screenshot {
2  
  *() {} // for persistance
3  
  *(BufferedImage img) {
4  
    savePNG(pngFile(), img);
5  
  }
6  
  
7  
  File pngFile() {
8  
    ret prepareProgramFile(_programID(), "screenshot" + id + ".png");
9  
  }
10  
}
11  
12  
Clip > MarkedClip {
13  
  Screenshot screenshot; // todo: turn into Ref
14  
  Rect positionInScreenshot;
15  
}
16  
17  
concept Clip {
18  
  long originalID; // ID in #1005389
19  
  BWImage img;
20  
  S description;
21  
}
22  
23  
concept Found {
24  
  new Ref<Screenshot> screenshot;
25  
  new Ref<Clip> clip;
26  
  FoundImg fi;
27  
}
28  
29  
concept FullySearched {
30  
  new Ref<Screenshot> screenshot;
31  
  new Ref<Clip> clip;
32  
}

Author comment

Began life as a copy of #1005522

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005530
Snippet name: PIF [Persistent Image Finder] Classes
Eternal ID of this version: #1005530/1
Text MD5: 2dc11a2cfcb379c8c3c319aff93f4b30
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-03 15:03:42
Source code size: 595 bytes / 32 lines
Pitched / IR pitched: No / No
Views / Downloads: 527 / 1350
Referenced in: [show references]