org.lee.mugen.imageIO
Class PCXPalette

java.lang.Object
  extended by org.lee.mugen.imageIO.PCXPalette

public class PCXPalette
extends java.lang.Object

Quake 2 Palette

Author:
Kevin Glass

Field Summary
 int[] b
           
 int[] g
           
static int PALETTE_SIZE
           
 int[] r
           
 
Constructor Summary
PCXPalette()
           
PCXPalette(java.io.InputStream in)
          Creates new PCX Palette
 
Method Summary
 int getColor(int i)
          Get a colour a specified index
 void load(java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PALETTE_SIZE

public static final int PALETTE_SIZE
See Also:
Constant Field Values

r

public int[] r

g

public int[] g

b

public int[] b
Constructor Detail

PCXPalette

public PCXPalette(java.io.InputStream in)
           throws java.io.IOException
Creates new PCX Palette

Parameters:
in - The input stream to read the palette from
Throws:
java.io.IOException

PCXPalette

public PCXPalette()
Method Detail

load

public void load(java.io.InputStream in)
          throws java.io.IOException
Throws:
java.io.IOException

getColor

public int getColor(int i)
Get a colour a specified index

Parameters:
i - The index of the colour to retrieve