Transpiled version (7932L) is out of date.
1 | svoid drawPixel(BufferedImage image, int x, int y, Color color) { |
2 | drawPixel(imageGraphics(image), x, y, color); |
3 | } |
4 | |
5 | svoid drawPixel(Graphics2D g, int x, int y, Color color) { |
6 | g.setColor(color); |
7 | g.drawLine(x, y, x, y); |
8 | } |
9 | |
10 | svoid drawPixel(BufferedImage image, Pt p, Color color) { |
11 | drawPixel(image, p.x, p.y, color); |
12 | } |
13 | |
14 | svoid drawPixel(Graphics2D g, Pt p, Color color) { |
15 | drawPixel(g, p.x, p.y, color); |
16 | } |
Began life as a copy of #1031936
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035414 |
Snippet name: | drawPixel - also works with translucent colors |
Eternal ID of this version: | #1035414/3 |
Text MD5: | f51c39c3aab627f93572cc11d51acf71 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-06 17:27:36 |
Source code size: | 424 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 115 / 160 |
Version history: | 2 change(s) |
Referenced in: | [show references] |