Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1035937 // loadQOI - load .qoi

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (74L) is out of date.

1  
!include once #1035902 // QOI Library [Include]
2  
3  
static BufferedImage loadQOI(File f) ctex {
4  
  if (f == null) null;
5  
  
6  
  var imageReader = new QOIImageReaderSPI().createReaderInstance();
7  
  
8  
  try {
9  
    var stream = ImageIO.createImageInputStream(f);
10  
    imageReader.setInput(stream);
11  
    ret imageReader.read(0);
12  
  } finally {
13  
    imageReader.dispose();
14  
  }
15  
}

Author comment

Began life as a copy of #1035904

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035937
Snippet name: loadQOI - load .qoi
Eternal ID of this version: #1035937/3
Text MD5: 158f0427101c4fbbcd6486da78a11b57
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-15 17:38:25
Source code size: 373 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 196
Version history: 2 change(s)
Referenced in: [show references]