Transpiled version (9849L) is out of date.
static BufferedImage lambdaMapLike mapPixels(IF1_IntToInt f, BufferedImage image) { if (image == null) null; int[] pixels = imageToIntPixels(image); for (int i = 0; i < pixels.length; i++) pixels[i] = f.get(pixels[i]); ret bufferedImage(pixels, imageSize(image)); } static BufferedImage lambdaMapLike mapPixels(BufferedImage image, IF1_IntToInt f) { ret mapPixels(f, image); }
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: | 141 / 189 |
Version history: | 2 change(s) |
Referenced in: | [show references] |