Uses 38K of libraries. Click here for Pure Java version (9207L/51K).
1 | !include once #1035902 // QOI Library [Include] |
2 | |
3 | static BufferedImage fromQOI(byte[] data) ctex { |
4 | if (empty(data)) null; |
5 | |
6 | var stream = new ByteArrayInputStream(data); |
7 | var imageReader = new QOIImageReaderSPI().createReaderInstance(); |
8 | |
9 | try { |
10 | imageReader.setInput(new javax.imageio.stream.MemoryCacheImageInputStream(stream)); |
11 | ret imageReader.read(0); |
12 | } finally { |
13 | imageReader.dispose(); |
14 | } |
15 | } |
Began life as a copy of #1035903
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035904 |
Snippet name: | fromQOI - decode QOIimage |
Eternal ID of this version: | #1035904/4 |
Text MD5: | 1f02d5078c7e9789e8e02d3555df66e8 |
Transpilation MD5: | 0daf8be8f063dfc5e5943413ca2a44ad |
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:25:18 |
Source code size: | 429 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 222 |
Version history: | 3 change(s) |
Referenced in: | [show references] |