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

13
LINES

< > BotCompany Repo | #1033121 // Test_rgbaWithSizeToIntMatrix_roundTrip (OK)

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

Libraryless. Click here for Pure Java version (4673L/27K).

1  
sclass Test_rgbaWithSizeToIntMatrix_roundTrip {
2  
  BufferedImage img = randomImage(50), img2;
3  
  L<Int> intList;
4  
  Matrix<Int> matrix;
5  
  
6  
  run {
7  
    intList = imagePixelsToRGBAWithSize_virtualIntList(img);
8  
    matrix = rgbaWithSizeToIntMatrix(intList);
9  
    img2 = intMatrixToBufferedImage(matrix);
10  
    assertImagesIdentical(img, img2);
11  
    print("OK");
12  
  }
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033121
Snippet name: Test_rgbaWithSizeToIntMatrix_roundTrip (OK)
Eternal ID of this version: #1033121/4
Text MD5: 97a1667ce75eb0139f10e5c0c06619f8
Transpilation MD5: e89af71164161293850a3f4e56627fc9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-15 16:15:33
Source code size: 369 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 210
Version history: 3 change(s)
Referenced in: [show references]