com.sun.opengl.util.texture.spi

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

Field Summary

static int
BLACKWHITE
static int
COLORMAPPED
static int
ID_ATTRIBPERPIXEL
Field image descriptor bitfield values definitions
static int
ID_INTERLEAVE
static int
ID_RIGHTTOLEFT
static int
ID_TOPTOBOTTOM
static int
I_FOURWAY
static int
I_NOTINTERLEAVED
Field image descriptor / interleave values
static int
I_TWOWAY
static int
NO_IMAGE
Set of possible image types in TGA file
static int
TRUECOLOR
static int
TYPE_NEW
Set of possible file format TGA types
static int
TYPE_OLD
static int
TYPE_UNK
static int
UBLACKWHITE
static int
UCOLORMAPPED
static int
UTRUECOLOR

Method Summary

byte
attribPerPixel()
bitfields in imageDescriptor
byte
colorMapEntrySize()
int
colorMapLength()
int
colorMapType()
int
firstEntryIndex()
TGA image colour map fields
int
height()
int
idLength()
initial TGA image data fields
byte
imageDescriptor()
String
imageID()
byte[]
imageIDbuf()
int
imageType()
byte
interleave()
byte
pixelDepth()
boolean
rightToLeft()
int
size()
int
tgaType()
String
toString()
boolean
topToBottom()
int
width()
int
xOrigin()
TGA image specification fields
int
yOrigin()

Field Details

BLACKWHITE

public static final int BLACKWHITE
Field Value:
11

COLORMAPPED

public static final int COLORMAPPED
Field Value:
9

ID_ATTRIBPERPIXEL

public static final int ID_ATTRIBPERPIXEL
Field image descriptor bitfield values definitions
Field Value:
15

ID_INTERLEAVE

public static final int ID_INTERLEAVE
Field Value:
192

ID_RIGHTTOLEFT

public static final int ID_RIGHTTOLEFT
Field Value:
16

ID_TOPTOBOTTOM

public static final int ID_TOPTOBOTTOM
Field Value:
32

I_FOURWAY

public static final int I_FOURWAY
Field Value:
2

I_NOTINTERLEAVED

public static final int I_NOTINTERLEAVED
Field image descriptor / interleave values
Field Value:
0

I_TWOWAY

public static final int I_TWOWAY
Field Value:
1

NO_IMAGE

public static final int NO_IMAGE
Set of possible image types in TGA file
Field Value:
0

TRUECOLOR

public static final int TRUECOLOR
Field Value:
10

TYPE_NEW

public static final int TYPE_NEW
Set of possible file format TGA types
Field Value:
0

TYPE_OLD

public static final int TYPE_OLD
Field Value:
1

TYPE_UNK

public static final int TYPE_UNK
Field Value:
2

UBLACKWHITE

public static final int UBLACKWHITE
Field Value:
3

UCOLORMAPPED

public static final int UCOLORMAPPED
Field Value:
1

UTRUECOLOR

public static final int UTRUECOLOR
Field Value:
2

Method Details

attribPerPixel

public byte attribPerPixel()
bitfields in imageDescriptor

colorMapEntrySize

public byte colorMapEntrySize()

colorMapLength

public int colorMapLength()

colorMapType

public int colorMapType()

firstEntryIndex

public int firstEntryIndex()
TGA image colour map fields

height

public int height()

idLength

public int idLength()
initial TGA image data fields

imageDescriptor

public byte imageDescriptor()

imageID

public String imageID()

imageIDbuf

public byte[] imageIDbuf()

imageType

public int imageType()

interleave

public byte interleave()

pixelDepth

public byte pixelDepth()

rightToLeft

public boolean rightToLeft()

size

public int size()

tgaType

public int tgaType()

toString

public String toString()

topToBottom

public boolean topToBottom()

width

public int width()

xOrigin

public int xOrigin()
TGA image specification fields

yOrigin

public int yOrigin()

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.