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

7
LINES

< > BotCompany Repo | #1024563 // bufferedImage_getRGB

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

Transpiled version (1827L) is out of date.

static RGB bufferedImage_getRGB(BufferedImage img, int x, int y) {
  ret img == null || x < 0 || y < 0 || x >= img.getWidth() || y >= img.getHeight() ? null : RGB(img.getRGB(x, y));
}

static RGB bufferedImage_getRGB(BufferedImage img, Pt p) {
  ret p == null ? null : bufferedImage_getRGB(img, p.x, p.y);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024563
Snippet name: bufferedImage_getRGB
Eternal ID of this version: #1024563/3
Text MD5: 55009291a9192eb8c1dd46eaf9841e98
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-18 14:53:24
Source code size: 313 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 229 / 321
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)