Class TgaLoader

java.lang.Object
com.ardor3d.image.util.TgaLoader
All Implemented Interfaces:
ImageLoader

public final class TgaLoader extends Object implements ImageLoader
Loads image files in the Targa format. Handles RLE Targa files. Does not handle Targa files in Black-and-White format.
  • Field Details

  • Constructor Details

    • TgaLoader

      public TgaLoader()
  • Method Details

    • load

      public Image load(InputStream is, boolean flip) throws IOException
      Load an image from Targa format.
      Specified by:
      load in interface ImageLoader
      Parameters:
      is - the input stream delivering the targa data.
      flip - if true, we will flip the given targa image on the vertical axis.
      Returns:
      the new loaded Image.
      Throws:
      IOException - if an error occurs during read.