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

3
LINES

< > BotCompany Repo | #1034921 // getIntColorWithoutAlphaOrMinus1 - -1 if out of image

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

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

static int getIntColorWithoutAlphaOrMinus1(BufferedImage img, int x, int y) {
  ret img == null || !inImage(x, y, img) ? -1 : getIntColorWithoutAlpha(img, x, y);
}

Author comment

Began life as a copy of #1034913

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034921
Snippet name: getIntColorWithoutAlphaOrMinus1 - -1 if out of image
Eternal ID of this version: #1034921/1
Text MD5: e1ffa7aa2bae88ea95463d024114d1ec
Transpilation MD5: 99495f170c2649cbaafad568d95492da
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-15 15:22:09
Source code size: 165 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 52 / 87
Referenced in: [show references]