public class InfoHeader
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
int |
iColorsImportant
Number of important colours (0 = all).
|
int |
iColorsUsed
Number of colours actually used in the bitmap.
|
int |
iCompression
|
int |
iHeight
The height in pixels of the bitmap represented by this InfoHeader.
|
int |
iImageSize
The compressed size of the image in bytes, or 0 if iCompression is 0.
|
int |
iNumColors
Calculated number of colours, based on the colour depth specified by
sBitCount . |
int |
iSize
The size of this InfoHeader structure in bytes.
|
int |
iWidth
The width in pixels of the bitmap represented by this InfoHeader.
|
int |
iXpixelsPerM
Horizontal resolution in pixels/m.
|
int |
iYpixelsPerM
Vertical resolution in pixels/m.
|
short |
sBitCount
The bit count, which represents the colour depth (bits per pixel).
|
short |
sPlanes
The number of planes, which should always be 1.
|
构造器和说明 |
---|
InfoHeader()
Creates an InfoHeader with default values.
|
InfoHeader(InfoHeader source)
Creates a copy of the source InfoHeader.
|
InfoHeader(LittleEndianInputStream in)
Creates an InfoHeader structure from the source input.
|
InfoHeader(LittleEndianInputStream in,
int infoSize) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
init(LittleEndianInputStream in,
int infoSize) |
void |
write(LittleEndianOutputStream out)
Writes the InfoHeader structure to output
|
public int iSize
public int iWidth
public int iHeight
public short sPlanes
public short sBitCount
public int iCompression
public int iImageSize
public int iXpixelsPerM
public int iYpixelsPerM
public int iColorsUsed
public int iColorsImportant
public int iNumColors
sBitCount
.public InfoHeader(LittleEndianInputStream in) throws java.io.IOException
in
- the source inputjava.io.IOException
- if an error occurspublic InfoHeader(LittleEndianInputStream in, int infoSize) throws java.io.IOException
java.io.IOException
public InfoHeader()
public InfoHeader(InfoHeader source)
source
- the source to copyprotected void init(LittleEndianInputStream in, int infoSize) throws java.io.IOException
java.io.IOException
public void write(LittleEndianOutputStream out) throws java.io.IOException
out
- the output to which the structure will be writtenjava.io.IOException
- if an error occurs