Package daevil.iconexe
Class WriteBMP32.InfoHeader
- java.lang.Object
-
- daevil.iconexe.WriteBMP32.InfoHeader
-
- Enclosing class:
- WriteBMP32
public static class WriteBMP32.InfoHeader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description intiColorsImportantNumber of important colours (0 = all).intiColorsUsedNumber of colours actually used in the bitmap.intiCompressionintiHeightThe height in pixels of the bitmap represented by this InfoHeader.intiImageSizeThe compressed size of the image in bytes, or 0 if iCompression is 0.intiNumColorsCalculated number of colours, based on the colour depth specified bysBitCount.intiSizeThe size of this InfoHeader structure in bytes.intiWidthThe width in pixels of the bitmap represented by this InfoHeader.intiXpixelsPerMHorizontal resolution in pixels/m.intiYpixelsPerMVertical resolution in pixels/m.shortsBitCountThe bit count, which represents the colour depth (bits per pixel).shortsPlanesThe number of planes, which should always be 1.
-
Constructor Summary
Constructors Constructor Description InfoHeader()Creates an InfoHeader with default values.InfoHeader(WriteBMP32.InfoHeader source)Creates a copy of the source InfoHeader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(WriteBMP32.LittleEndianOutputStream out)Writes the InfoHeader structure to output
-
-
-
Field Detail
-
iSize
public int iSize
The size of this InfoHeader structure in bytes.
-
iWidth
public int iWidth
The width in pixels of the bitmap represented by this InfoHeader.
-
iHeight
public int iHeight
The height in pixels of the bitmap represented by this InfoHeader.
-
sPlanes
public short sPlanes
The number of planes, which should always be 1.
-
sBitCount
public short sBitCount
The bit count, which represents the colour depth (bits per pixel). This should be either 1, 4, 8, 24 or 32.
-
iCompression
public int iCompression
-
iImageSize
public int iImageSize
The compressed size of the image in bytes, or 0 if iCompression is 0.
-
iXpixelsPerM
public int iXpixelsPerM
Horizontal resolution in pixels/m.
-
iYpixelsPerM
public int iYpixelsPerM
Vertical resolution in pixels/m.
-
iColorsUsed
public int iColorsUsed
Number of colours actually used in the bitmap.
-
iColorsImportant
public int iColorsImportant
Number of important colours (0 = all).
-
iNumColors
public int iNumColors
Calculated number of colours, based on the colour depth specified bysBitCount.
-
-
Constructor Detail
-
InfoHeader
public InfoHeader()
Creates an InfoHeader with default values.
-
InfoHeader
public InfoHeader(WriteBMP32.InfoHeader source)
Creates a copy of the source InfoHeader.- Parameters:
source- the source to copy
-
-
Method Detail
-
write
public void write(WriteBMP32.LittleEndianOutputStream out) throws java.io.IOException
Writes the InfoHeader structure to output- Parameters:
out- the output to which the structure will be written- Throws:
java.io.IOException- if an error occurs
-
-