Libraryless. Click here for Pure Java version (23794L/145K).
1 | sclass Test_ImageInfiller { |
2 | BufferedImage lastImageIn, lastImageOut; |
3 | |
4 | run { |
5 | int blue = 0xFF0000FF; |
6 | assertPixels(infill(imageFromPixels(3, |
7 | blue, blue, blue, |
8 | blue, 0, blue, |
9 | blue, blue, blue)), |
10 | repIntArray(blue, 9)); |
11 | } |
12 | |
13 | BufferedImage infill(BufferedImage image) { |
14 | ret lastImageOut = new ImageInfiller(lastImageIn = image)!; |
15 | } |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035728 |
Snippet name: | Test_ImageInfiller |
Eternal ID of this version: | #1035728/5 |
Text MD5: | 679df29b0b811d6ce7e6a24c7214fd31 |
Transpilation MD5: | cf1bfa87a5166d383c282ccc32a79774 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-14 23:02:30 |
Source code size: | 389 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 159 / 271 |
Version history: | 4 change(s) |
Referenced in: | [show references] |