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.

svoid test_Image2BAsInts() {
  repeat 1000 {
    int w = random_incl(1, 32);
    int h = random_incl(1, 32);
    Image2B image = randomBinaryImage(w, h);
    Image2BAsInts image2 = new(image);
    assertSameImage(image, image2);
  }
}

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: 164 / 184
Version history: 1 change(s)
Referenced in: [show references]