1 | static S md5OfTransparentImage(BufferedImage img) ctex { |
2 | MessageDigest m = MessageDigest.getInstance("MD5"); |
3 | m.update(intToBytes(img.getWidth())); |
4 | int[] pixels = pixelsOfBufferedImage(img); |
5 | for (int i = 0; i < l(pixels); i++) |
6 | m.update(intToBytes(pixels[i] ^ 0xFF000000)); |
7 | ret bytesToHex(m.digest()); |
8 | } |
Began life as a copy of #1004986
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010160 |
Snippet name: | md5OfTransparentImage |
Eternal ID of this version: | #1010160/4 |
Text MD5: | 7e7900ca77ca1306b47b966046856aab |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-05 17:37:34 |
Source code size: | 322 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 539 / 545 |
Version history: | 3 change(s) |
Referenced in: | [show references] |