Libraryless. Click here for Pure Java version (5080L/28K).
svoid setPixels(BufferedImage img, Iterable<Pt> points, Color color) { if (img == null) ret; fOr (p : points) img.setRGB(p.x, p.y, colorToIntOpaque(color)); }
Began life as a copy of #1031353
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034972 |
Snippet name: | setPixels |
Eternal ID of this version: | #1034972/1 |
Text MD5: | 59e428ea2ac0082bf990544763999ecc |
Transpilation MD5: | e2ac0c99d2866e7184bedbdbb9b17da1 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-19 18:22:14 |
Source code size: | 170 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 122 / 185 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035415 - drawPixels - also works with translucent pixels |