Transpiled version (9849L) is out of date.
1 | static BufferedImage lambdaMapLike mapPixels(IF1_IntToInt f, BufferedImage image) { |
2 | if (image == null) null; |
3 | int[] pixels = imageToIntPixels(image); |
4 | for (int i = 0; i < pixels.length; i++) |
5 | pixels[i] = f.get(pixels[i]); |
6 | ret bufferedImage(pixels, imageSize(image)); |
7 | } |
8 | |
9 | static BufferedImage lambdaMapLike mapPixels(BufferedImage image, IF1_IntToInt f) { |
10 | ret mapPixels(f, image); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035650 |
Snippet name: | mapPixels - apply a function to every pixel of an image |
Eternal ID of this version: | #1035650/3 |
Text MD5: | 70886c1c978d8963038fb8eb11ea0781 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-28 19:50:53 |
Source code size: | 397 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 190 |
Version history: | 2 change(s) |
Referenced in: | [show references] |