sclass Test_rgbaWithSizeToIntMatrix_roundTrip { BufferedImage img = randomImage(50), img2; L byteList; L intList; Matrix matrix; run { byteList = imagePixelsToRGBAWithSize(img); intList = byteListToIntList_littleEndian(byteList); matrix = rgbaWithSizeToIntMatrix(intList); img2 = intMatrixToBufferedImage(matrix); assertImagesIdentical(img, img2); print("OK"); } }