Class TGAImage.Header

  • Enclosing class:
    TGAImage

    public static class TGAImage.Header
    extends Object
    This class reads in all of the TGA image header in addition it also reads in the imageID field as it is convenient to handle that here.
    Version:
    1.1
    Author:
    Robin Luiten
    • Method Detail

      • tgaType

        public int tgaType()
      • idLength

        public int idLength()
        initial TGA image data fields
      • colorMapType

        public int colorMapType()
      • imageType

        public int imageType()
      • firstEntryIndex

        public int firstEntryIndex()
        TGA image colour map fields
      • colorMapLength

        public int colorMapLength()
      • colorMapEntrySize

        public byte colorMapEntrySize()
      • xOrigin

        public int xOrigin()
        TGA image specification fields
      • yOrigin

        public int yOrigin()
      • width

        public int width()
      • height

        public int height()
      • pixelDepth

        public byte pixelDepth()
      • imageDescriptor

        public byte imageDescriptor()
      • attribPerPixel

        public byte attribPerPixel()
        bitfields in imageDescriptor
      • rightToLeft

        public boolean rightToLeft()
      • topToBottom

        public boolean topToBottom()
      • interleave

        public byte interleave()
      • imageIDbuf

        public byte[] imageIDbuf()
      • imageID

        public String imageID()
      • size

        public int size()