Transpiled version (35L) is out of date.
static int guessImageSizeInMemory(BufferedImage image) { if (image == null) ret 0; var buf = image.getRaster().getDataBuffer(); ret (int) (buf.getDataTypeSize(buf.getDataType())*(long) buf.getSize()/8); }
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: | 133 / 181 |
Version history: | 2 change(s) |
Referenced in: | [show references] |