Transpiled version (5106L) is out of date.
1 | svoid checkPixelArray(int[] pixels, int... expected) {
|
2 | assertEquals(l(pixels), l(expected); |
3 | for i over pixels: |
4 | if (pixels[i] != expected[i]) |
5 | fail("pixel " + i + ": " + intToHex(pixels[i]) + " vs " + intToHex(expected[i]));
|
6 | } |
7 | |
8 | svoid checkPixelArray(BufferedImage img, int... expectedPixels) {
|
9 | int[] pixels = grabbableIntPixels_fastOrSlow(img).asPackedArray(); |
10 | checkPixelArray(pixels, expectedPixels); |
11 | } |
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: | 351 / 437 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |