Libraryless. Click here for Pure Java version (9322L/52K).
static BufferedImage transformBufferedImageWithSimplePixelOp(IF1_IntToInt f, BufferedImage img) { if (img == null) null; int w = img.getWidth(), h = img.getHeight(); int[] pixels = pixelsFromBufferedImage(img); int[] newPixels = new[pixels.length]; for (int i = 0; i < pixels.length; i++) newPixels[i] = f.get(pixels[i]); ret bufferedImageFromPixels(newPixels, w, h); }
Began life as a copy of #1024727
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036066 |
Snippet name: | transformBufferedImageWithSimplePixelOp |
Eternal ID of this version: | #1036066/5 |
Text MD5: | f049767ad1f4090076f8dc8fa3813f5a |
Transpilation MD5: | 3f6a55b3db51f55e9bc217453871b6c1 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-05 02:30:00 |
Source code size: | 393 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 148 / 218 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |