| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.image4j.codec.ico.IconEntry
public class IconEntry
Represents an IconEntry structure, which contains information about an ICO image.
| Field Summary | |
|---|---|
 int | 
bColorCount
The number of colours, calculated from sBitCount. | 
 int | 
bHeight
The height of the icon image in pixels.  | 
 byte | 
bReserved
Unused.  | 
 int | 
bWidth
The width of the icon image in pixels.  | 
 int | 
iFileOffset
Position in file where the InfoHeader starts.  | 
 int | 
iSizeInBytes
Size of ICO data, which should be the size of (InfoHeader + AND bitmap + XOR bitmap).  | 
 short | 
sBitCount
Colour depth in bits per pixel.  | 
 short | 
sPlanes
Number of planes, which should always be 1.  | 
| Constructor Summary | |
|---|---|
IconEntry()
Creates and IconEntry structure with default values.  | 
|
IconEntry(LittleEndianInputStream in)
Creates an IconEntry structure from the source input  | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
toString()
A string representation of this IconEntry structure.  | 
 void | 
write(LittleEndianOutputStream out)
Writes the IconEntry structure to output  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public int bWidth
public int bHeight
public int bColorCount
sBitCount.
 0 specifies a colour count of >= 256.
public byte bReserved
public short sPlanes
public short sBitCount
public int iSizeInBytes
public int iFileOffset
| Constructor Detail | 
|---|
public IconEntry(LittleEndianInputStream in)
          throws java.io.IOException
in - the source input
java.io.IOException - if an error occurspublic IconEntry()
| Method Detail | 
|---|
public java.lang.String toString()
toString in class java.lang.Object
public void write(LittleEndianOutputStream out)
           throws java.io.IOException
out - the output
java.io.IOException - if an error occurs
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||