org.apache.poi.hwmf.record

## Class HwmfBitmapDib

- java.lang.Object
- - org.apache.poi.hwmf.record.HwmfBitmapDib

- All Implemented Interfaces:
    GenericRecord

      public class HwmfBitmapDib
      extends java.lang.Object
      implements GenericRecord

  The DeviceIndependentBitmap Object defines an image in device-independent bitmap (DIB) format.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `HwmfBitmapDib.BitCount`
    `static class` | `HwmfBitmapDib.Compression`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HwmfBitmapDib()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getBMPData()`
    `java.io.InputStream` | `getBMPStream()`
    `java.util.Map<java.lang.String,java.util.function.Supplier<?>>` | `getGenericProperties()`
    `java.awt.image.BufferedImage` | `getImage()`
    `java.awt.image.BufferedImage` | `getImage(java.awt.Color foreground, java.awt.Color background, boolean hasAlpha)`
    `protected java.awt.image.BufferedImage` | `getPlaceholder()`
    `int` | `init(LittleEndianInputStream leis, int recordSize)`
    `boolean` | `isValid()`
    `protected int` | `readColors(LittleEndianInputStream leis)`
    `protected int` | `readHeader(LittleEndianInputStream leis)`
    `protected int` | `readRGBQuad(LittleEndianInputStream leis, int count)`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord

      `getGenericChildren, getGenericRecordType`

- - ### Constructor Detail

    - #### HwmfBitmapDib

          public HwmfBitmapDib()

  - ### Method Detail

    - #### init

          public int init(LittleEndianInputStream leis,
                          int recordSize)
                   throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### readHeader

          protected int readHeader(LittleEndianInputStream leis)
                            throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### readColors

          protected int readColors(LittleEndianInputStream leis)
                            throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### readRGBQuad

          protected int readRGBQuad(LittleEndianInputStream leis,
                                    int count)
                             throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### isValid

          public boolean isValid()

    - #### getBMPStream

          public java.io.InputStream getBMPStream()

    - #### getBMPData

          public byte[] getBMPData()

    - #### getImage

          public java.awt.image.BufferedImage getImage()

    - #### getImage

          public java.awt.image.BufferedImage getImage(java.awt.Color foreground,
                                                       java.awt.Color background,
                                                       boolean hasAlpha)

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### getGenericProperties

          public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()

      Specified by:
        `getGenericProperties` in interface `GenericRecord`

    - #### getPlaceholder

          protected java.awt.image.BufferedImage getPlaceholder()

Copyright 2020 The Apache Software Foundation or its licensors, as applicable.