|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lee.mugen.imageIO.PCXPalette
public class PCXPalette
Quake 2 Palette
| 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 |
|---|
public static final int PALETTE_SIZE
public int[] r
public int[] g
public int[] b
| Constructor Detail |
|---|
public PCXPalette(java.io.InputStream in)
throws java.io.IOException
in - The input stream to read the palette from
java.io.IOExceptionpublic PCXPalette()
| Method Detail |
|---|
public void load(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic int getColor(int i)
i - The index of the colour to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||