org.apache.poi.hwmf.record

## Interface HwmfFill.HwmfImageRecord

- All Known Implementing Classes:
    HemfFill.EmfBitBlt, HemfFill.EmfStretchBlt, HemfFill.EmfStretchDiBits, HemfMisc.EmfCreateDibPatternBrushPt, HwmfFill.WmfDibBitBlt, HwmfFill.WmfDibStretchBlt, HwmfFill.WmfSetDibToDev, HwmfFill.WmfStretchDib, HwmfMisc.WmfDibCreatePatternBrush
  Enclosing class:
    HwmfFill

      public static interface HwmfFill.HwmfImageRecord

  A record which contains an image (to be extracted)

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getBMPData()`
    `default java.awt.image.BufferedImage` | `getImage()`
    `java.awt.image.BufferedImage` | `getImage(java.awt.Color foreground, java.awt.Color background, boolean hasAlpha)` Provide an image using the fore-/background color, in case of a 1-bit pattern

- - ### Method Detail

    - #### getImage

          default java.awt.image.BufferedImage getImage()

    - #### getImage

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

      Provide an image using the fore-/background color, in case of a 1-bit pattern
      Parameters:
        `foreground` - the foreground color
        `background` - the background color
        `hasAlpha` - if true, the background color is rendered transparent - see `HwmfMisc.WmfSetBkMode.HwmfBkMode`
      Returns:
        the image
      Since:
        POI 4.1.1

    - #### getBMPData

          byte[] getBMPData()

      Returns:
        the raw BMP data
      Since:
        POI 4.1.1
      See Also:
        BMP format

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