Class WriteBMP32.InfoHeader

  • Enclosing class:
    WriteBMP32

    public static class WriteBMP32.InfoHeader
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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.
    • 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 by sBitCount.
    • 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