Libraryless. Click here for Pure Java version (2311L/15K).
1 | static Rect imageRect() { |
2 | ret imageRect(currentImage()); |
3 | } |
4 | |
5 | static Rect imageRect(BufferedImage img) { |
6 | ret img == null ? null : Rect(0, 0, img.getWidth(), img.getHeight()); |
7 | } |
8 | |
9 | static Rect imageRect(MakesBufferedImage img) { |
10 | ret img == null ? null : Rect(0, 0, img.getWidth(), img.getHeight()); |
11 | } |
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: | 567 / 700 |
Version history: | 2 change(s) |
Referenced in: | [show references] |