Libraryless. Click here for Pure Java version (5009L/28K).
1 | static Color getColor(BufferedImage img, int x, int y) {
|
2 | ret colorFromRGBA(img.getRGB(x, y)); |
3 | } |
4 | |
5 | static Color getColor(BufferedImage img, Pt p) {
|
6 | ret colorFromRGBA(img.getRGB(p.x, p.y)); |
7 | } |
Began life as a copy of #1032254
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034658 |
| Snippet name: | getColor - get pixel from BufferedImage as Color (with alpha) |
| Eternal ID of this version: | #1034658/1 |
| Text MD5: | 164801b5da639139e945448783278eac |
| Transpilation MD5: | 9266edca271b22b61009c5d933ade7ac |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-28 23:13:30 |
| Source code size: | 198 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 524 / 626 |
| Referenced in: | [show references] |