Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 539 Bytes

File metadata and controls

22 lines (16 loc) · 539 Bytes

Copy of Reality Interactive's ImageIO TGA library

Building

ant build

Usage

Simply register the plugin with ImageIO:

IIORegistry registry = IIORegistry.getDefaultInstance();
registry.registerServiceProvider(new com.realityinteractive.imageio.tga.TGAImageReaderSpi());

For performance reasons, when using this spi use ImageIO methods that use File as argument not Streams

// do not use
ImageIO.read(new BufferedInputStream(new FileInputStream(path.toFile())));
// use
ImageIO.read(path.toFile());