Uses 38K of libraries. Click here for Pure Java version (9207L/51K).
!include once #1035902 // QOI Library [Include] static BufferedImage fromQOI(byte[] data) ctex { if (empty(data)) null; var stream = new ByteArrayInputStream(data); var imageReader = new QOIImageReaderSPI().createReaderInstance(); try { imageReader.setInput(new javax.imageio.stream.MemoryCacheImageInputStream(stream)); ret imageReader.read(0); } finally { imageReader.dispose(); } }
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: | 176 / 223 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035937 - loadQOI - load .qoi |