Class DIBHeader

    • Field Detail

      • size

        protected int size
      • width

        protected int width
      • height

        protected int height
      • topDown

        protected boolean topDown
      • planes

        protected int planes
      • bitCount

        protected int bitCount
      • compression

        protected int compression
        0 = BI_RGB: No compression 1 = BI_RLE8: 8 bit RLE Compression (8 bit only) 2 = BI_RLE4: 4 bit RLE Compression (4 bit only) 3 = BI_BITFIELDS: No compression (16 & 32 bit only)
      • imageSize

        protected int imageSize
      • xPixelsPerMeter

        protected int xPixelsPerMeter
      • yPixelsPerMeter

        protected int yPixelsPerMeter
      • colorsUsed

        protected int colorsUsed
      • colorsImportant

        protected int colorsImportant
      • masks

        protected int[] masks
      • colorSpaceType

        protected int colorSpaceType
      • cieXYZEndpoints

        protected double[] cieXYZEndpoints
      • gamma

        protected int[] gamma
      • intent

        protected int intent
      • profileData

        protected long profileData
      • profileSize

        protected long profileSize
    • Constructor Detail

      • DIBHeader

        protected DIBHeader()
    • Method Detail

      • read

        public static DIBHeader read​(java.io.DataInput stream)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createHeader

        private static DIBHeader createHeader​(int size)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        protected abstract void read​(int size,
                                     java.io.DataInput stream)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected abstract void write​(java.io.DataOutput stream)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getSize

        public final int getSize()
      • getWidth

        public final int getWidth()
      • getHeight

        public final int getHeight()
      • getPlanes

        public final int getPlanes()
      • getBitCount

        public final int getBitCount()
      • getCompression

        public int getCompression()
      • getImageSize

        public int getImageSize()
      • getXPixelsPerMeter

        public int getXPixelsPerMeter()
      • getYPixelsPerMeter

        public int getYPixelsPerMeter()
      • getColorsUsed

        public int getColorsUsed()
      • getColorsImportant

        public int getColorsImportant()
      • hasMasks

        public boolean hasMasks()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • readMasks

        private static int[] readMasks​(java.io.DataInput stream,
                                       boolean hasAlphaMask)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getBMPVersion

        protected abstract java.lang.String getBMPVersion()