Class TGAImage.Header
java.lang.Object
com.jogamp.opengl.util.texture.spi.TGAImage.Header
- Enclosing class:
- TGAImage
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Field image descriptor / interleave valuesstatic final int
static final int
Field image descriptor bitfield values definitionsstatic final int
static final int
static final int
static final int
Set of possible image types in TGA filestatic final int
static final int
Set of possible file format TGA typesstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionbyte
bitfields in imageDescriptorbyte
int
int
int
TGA image colour map fieldsint
height()
int
idLength()
initial TGA image data fieldsbyte
imageID()
byte[]
int
byte
byte
boolean
int
size()
int
tgaType()
boolean
toString()
int
width()
int
xOrigin()
TGA image specification fieldsint
yOrigin()
-
Field Details
-
TYPE_NEW
public static final int TYPE_NEWSet of possible file format TGA types- See Also:
-
TYPE_OLD
public static final int TYPE_OLD- See Also:
-
TYPE_UNK
public static final int TYPE_UNK- See Also:
-
NO_IMAGE
public static final int NO_IMAGESet of possible image types in TGA file- See Also:
-
UCOLORMAPPED
public static final int UCOLORMAPPED- See Also:
-
UTRUECOLOR
public static final int UTRUECOLOR- See Also:
-
UBLACKWHITE
public static final int UBLACKWHITE- See Also:
-
COLORMAPPED
public static final int COLORMAPPED- See Also:
-
TRUECOLOR
public static final int TRUECOLOR- See Also:
-
BLACKWHITE
public static final int BLACKWHITE- See Also:
-
ID_ATTRIBPERPIXEL
public static final int ID_ATTRIBPERPIXELField image descriptor bitfield values definitions- See Also:
-
ID_RIGHTTOLEFT
public static final int ID_RIGHTTOLEFT- See Also:
-
ID_TOPTOBOTTOM
public static final int ID_TOPTOBOTTOM- See Also:
-
ID_INTERLEAVE
public static final int ID_INTERLEAVE- See Also:
-
I_NOTINTERLEAVED
public static final int I_NOTINTERLEAVEDField image descriptor / interleave values- See Also:
-
I_TWOWAY
public static final int I_TWOWAY- See Also:
-
I_FOURWAY
public static final int I_FOURWAY- See Also:
-
-
Method Details
-
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
-
toString
-
size
public int size()
-