Transpiled version (5106L) is out of date.
svoid checkPixelArray(int[] pixels, int... expected) { assertEquals(l(pixels), l(expected); for i over pixels: if (pixels[i] != expected[i]) fail("pixel " + i + ": " + intToHex(pixels[i]) + " vs " + intToHex(expected[i])); } svoid checkPixelArray(BufferedImage img, int... expectedPixels) { int[] pixels = grabbableIntPixels_fastOrSlow(img).asPackedArray(); checkPixelArray(pixels, expectedPixels); }
Began life as a copy of #1033286
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034394 |
Snippet name: | checkPixelArray |
Eternal ID of this version: | #1034394/4 |
Text MD5: | b0f81f2e1049e8b1d0693338392513b2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-05 03:10:18 |
Source code size: | 431 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 131 / 189 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |