Transpiled version (35L) is out of date.
1 | static int guessImageSizeInMemory(BufferedImage image) { |
2 | if (image == null) ret 0; |
3 | var buf = image.getRaster().getDataBuffer(); |
4 | ret (int) (buf.getDataTypeSize(buf.getDataType())*(long) buf.getSize()/8); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035947 |
Snippet name: | guessImageSizeInMemory |
Eternal ID of this version: | #1035947/3 |
Text MD5: | 9085d4cc9cd40b6ceee6b6c88e750dd6 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-17 17:19:59 |
Source code size: | 214 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 134 / 183 |
Version history: | 2 change(s) |
Referenced in: | [show references] |