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

9
LINES

< > BotCompany Repo | #1036037 // test_Image2BAsInts (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (11382L) is out of date.

1  
svoid test_Image2BAsInts() {
2  
  repeat 1000 {
3  
    int w = random_incl(1, 32);
4  
    int h = random_incl(1, 32);
5  
    Image2B image = randomBinaryImage(w, h);
6  
    Image2BAsInts image2 = new(image);
7  
    assertSameImage(image, image2);
8  
  }
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036037
Snippet name: test_Image2BAsInts (OK)
Eternal ID of this version: #1036037/2
Text MD5: aac1fae5f9e2bb89b7047011641b7181
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-03 01:17:52
Source code size: 242 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 166 / 188
Version history: 1 change(s)
Referenced in: [show references]