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.

!include once #1035902 // QOI Library [Include]

static BufferedImage loadQOI(File f) ctex {
  if (f == null) null;
  
  var imageReader = new QOIImageReaderSPI().createReaderInstance();
  
  try {
    var stream = ImageIO.createImageInputStream(f);
    imageReader.setInput(stream);
    ret imageReader.read(0);
  } finally {
    imageReader.dispose();
  }
}

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: 164 / 195
Version history: 2 change(s)
Referenced in: [show references]