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

!752

p {
  BufferedImage img = shootScreen2();
  BWImage bw;
  time {
    bw = new BWImage(img);
  }
  showImage(bw.getBufferedImage());
  
  // verify
  BWImage bw2 = new BWImage(new RGBImage(img));
  assertEquals(0f, bwImageSectionsSimilarity(bw, bw2, 0, 0, 1000));
  print("ok!");
}

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