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

11
LINES

< > BotCompany Repo | #1009160 // imageRect - rect(0, 0, w, h)

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

Libraryless. Click here for Pure Java version (2311L/15K).

static Rect imageRect() {
  ret imageRect(currentImage());
}

static Rect imageRect(BufferedImage img) {
  ret img == null ? null : Rect(0, 0, img.getWidth(), img.getHeight());
}

static Rect imageRect(MakesBufferedImage img) {
  ret img == null ? null : Rect(0, 0, img.getWidth(), img.getHeight());
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1009160
Snippet name: imageRect - rect(0, 0, w, h)
Eternal ID of this version: #1009160/3
Text MD5: 594645f8c2e28536d6b89dcb652f74be
Transpilation MD5: 7d80192b1f673201bf6b6c87b242088d
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-03 02:20:53
Source code size: 311 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 565 / 697
Version history: 2 change(s)
Referenced in: [show references]