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

15
LINES

< > BotCompany Repo | #1005697 // Test new BWImage constructor

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

Libraryless. Click here for Pure Java version (3321L/22K/76K).

1  
!752
2  
3  
p {
4  
  BufferedImage img = shootScreen2();
5  
  BWImage bw;
6  
  time {
7  
    bw = new BWImage(img);
8  
  }
9  
  showImage(bw.getBufferedImage());
10  
  
11  
  // verify
12  
  BWImage bw2 = new BWImage(new RGBImage(img));
13  
  assertEquals(0f, bwImageSectionsSimilarity(bw, bw2, 0, 0, 1000));
14  
  print("ok!");
15  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005697
Snippet name: Test new BWImage constructor
Eternal ID of this version: #1005697/1
Text MD5: 33636c13a0e18db75f91d840f8ffc694
Transpilation MD5: 4b4c3e07f10f77438441ec4f1f901c04
Author: stefan
Category: javax / imaging
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-03 19:24:50
Source code size: 300 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 543 / 644
Referenced in: [show references]