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

7
LINES

< > BotCompany Repo | #1032254 // getPixel - get pixel from BufferedImage

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

Transpiled version (28L) is out of date.

static int getPixel(BufferedImage img, int x, int y) {
  ret img.getRGB(x, y);
}

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

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032254
Snippet name: getPixel - get pixel from BufferedImage
Eternal ID of this version: #1032254/2
Text MD5: 99f9b55ec8cb7a2ad2da947102370379
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-23 01:53:50
Source code size: 164 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 212 / 294
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034658 - getColor - get pixel from BufferedImage as Color (with alpha)