Libraryless. Click here for Pure Java version (9213L/51K).
1 | static double bitsPerPixel(byte[] compressed, BufferedImage originalImage) { |
2 | ret doubleRatio(l(compressed)*8.0, area(originalImage)); |
3 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035905 |
Snippet name: | bitsPerPixel - calculate bits used per pixel by a compression algorithm |
Eternal ID of this version: | #1035905/1 |
Text MD5: | 3a7731f7cb013a55b03dee1fb200972a |
Transpilation MD5: | 9cd4d4509324ad512bcfaa312611bc38 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-11 19:19:37 |
Source code size: | 139 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 191 |
Referenced in: | [show references] |