Libraryless. Click here for Pure Java version (126L/1K).
1 | static int getIntColorWithoutAlpha(BufferedImage img, int x, int y) { |
2 | ret img.getRGB(x, y) & 0xFFFFFF; |
3 | } |
4 | |
5 | static int getIntColorWithoutAlpha(BufferedImage img, Pt p) { |
6 | ret getIntColorWithoutAlpha(img, p.x, p.y); |
7 | } |
Began life as a copy of #1034658
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034913 |
Snippet name: | getIntColorWithoutAlpha - get pixel from BufferedImage as RGB int without alpha |
Eternal ID of this version: | #1034913/3 |
Text MD5: | fb972e062ec8b36ba217840d260fb007 |
Transpilation MD5: | f46274074018c73d1b87b5e6b5de399e |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-14 20:14:41 |
Source code size: | 223 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 138 / 195 |
Version history: | 2 change(s) |
Referenced in: | [show references] |