static S md5OfTransparentImage(BufferedImage img) ctex { MessageDigest m = MessageDigest.getInstance("MD5"); m.update(intToBytes(img.getWidth())); int[] pixels = pixelsOfBufferedImage(img); for (int i = 0; i < l(pixels); i++) m.update(intToBytes(pixels[i] ^ 0xFF000000)); ret bytesToHex(m.digest()); }
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: | 537 / 543 |
Version history: | 3 change(s) |
Referenced in: | [show references] |