|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.image4j.codec.bmp.ColorEntry
public class ColorEntry
Represents an RGB colour entry used in the palette of an indexed image (colour depth <= 8).
| Field Summary | |
|---|---|
int |
bBlue
The blue component, which should be in the range 0..255. |
int |
bGreen
The green component, which should be in the range 0..255. |
int |
bRed
The red component, which should be in the range 0..255. |
int |
bReserved
Unused. |
| Constructor Summary | |
|---|---|
ColorEntry()
Creates a colour entry with colour components initialized to 0. |
|
ColorEntry(int r,
int g,
int b,
int a)
Creates a colour entry with the specified colour components. |
|
ColorEntry(LittleEndianInputStream in)
Reads and creates a colour entry from the source input. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int bRed
public int bGreen
public int bBlue
public int bReserved
| Constructor Detail |
|---|
public ColorEntry(LittleEndianInputStream in)
throws java.io.IOException
in - the source input
java.io.IOException - if an error occurspublic ColorEntry()
public ColorEntry(int r,
int g,
int b,
int a)
r - red componentg - green componentb - blue componenta - unused
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||