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

7
LINES

< > BotCompany Repo | #1029735 // imgRect - just the size of the image

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

Transpiled version (3308L) is out of date.

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

static Rect imgRect(WidthAndHeight img) {
  ret img == null ? : new Rect(0, 0, img.getWidth(), img.getHeight());
}

Author comment

Began life as a copy of #1025284

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: #1029735
Snippet name: imgRect - just the size of the image
Eternal ID of this version: #1029735/3
Text MD5: 14af7e9f5c9133cdabd0bf891bded38c
Author: stefan
Category: javax / images
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-19 20:20:28
Source code size: 235 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 265
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)