Libraryless. Click here for Pure Java version (148L/1K).
svoid setPixel(BufferedImage img, Pt etc p, Color color) { img?.setRGB(p.x, p.y, colorToIntOpaque(color)); } svoid setPixel(Graphics2D g, Pt etc p, Color color) { g.setColor(color); g.drawRect(p.x, p.y, 1, 1); }
Began life as a copy of #1025174
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031353 |
Snippet name: | setPixel |
Eternal ID of this version: | #1031353/5 |
Text MD5: | d6d52253b761d7fa1e1ca32a39cfb177 |
Transpilation MD5: | 679834979f6eaadee4ef9c43a7770961 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-15 05:05:40 |
Source code size: | 225 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 274 / 411 |
Version history: | 4 change(s) |
Referenced in: | [show references] |