Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1034913 // getIntColorWithoutAlpha - get pixel from BufferedImage as RGB int without alpha

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (126L/1K).

static int getIntColorWithoutAlpha(BufferedImage img, int x, int y) {
  ret img.getRGB(x, y) & 0xFFFFFF;
}

static int getIntColorWithoutAlpha(BufferedImage img, Pt p) {
  ret getIntColorWithoutAlpha(img, p.x, p.y);
}

Author comment

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: 60 / 98
Version history: 2 change(s)
Referenced in: [show references]