Transpiled version (9314L) is out of date.
static GrabbableRGBBytePixels grabbableRGBBytePixels_fastOrSlow(BufferedImage image) ctex { pcall { GrabbableRGBBytePixels gp = grabbableRGBBytePixels(image); if (gp != null) ret gp; } int w = image.getWidth(), h = image.getHeight(); byte[] data = new[w*h*3]; PixelGrabber pixelGrabber = new(image, 0, 0, w, h, data, 0, w); if (!pixelGrabber.grabPixels()) fail("Could not grab pixels"); ret GrabbableRGBBytePixels(data, w, h, 0, w); }
Began life as a copy of #1033307
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1035897 |
| Snippet name: | grabbableRGBBytePixels_fastOrSlow [doesn't work, use grabbableIntPixels_fastOrSlow instead] |
| Eternal ID of this version: | #1035897/3 |
| Text MD5: | 7bcb800fdae517750faf5536d5606269 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-08 19:11:58 |
| Source code size: | 485 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 359 / 449 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |