Java TGA loader

后端 未结 5 1503

I am looking for a small and free TGA image loading class or library for java. Ideally the result is a BufferedImage.

Yes, I have already googled, but most results a

5条回答
  •  Happy的楠姐
    2021-01-05 03:16

    I've added a standalone copy of Reality Interactive's ImageIO TGA library here (LGPL):

    https://github.com/tmyroadctfig/com.realityinteractive.imageio.tga


    Just add the the jar file to your classpath and register with ImageIO:

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

提交回复
热议问题