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

4
LINES

< > BotCompany Repo | #1034902 // inImage

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

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

sbool inImage(Pt etc p, BufferedImage img) {
  ret p != null && img != null && p.x >= 0 && p.y >= 0
    && p.x < img.getWidth() && p.y < img.getHeight();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034902
Snippet name: inImage
Eternal ID of this version: #1034902/2
Text MD5: 83d67d803b45bdfc32fc468c4daf61e9
Transpilation MD5: 214a7c309d7bdad51d0bfdd68b79bdad
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-14 20:49:57
Source code size: 158 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 63 / 94
Version history: 1 change(s)
Referenced in: [show references]