Package 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 Description static classHwmfBitmapDib.BitCountstatic classHwmfBitmapDib.Compression
-
Constructor Summary
Constructors Constructor Description HwmfBitmapDib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBMPData()java.io.InputStreamgetBMPStream()java.util.Map<java.lang.String,java.util.function.Supplier<?>>getGenericProperties()java.awt.image.BufferedImagegetImage()java.awt.image.BufferedImagegetImage(java.awt.Color foreground, java.awt.Color background, boolean hasAlpha)intinit(LittleEndianInputStream leis, int recordSize)booleanisValid()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis, int recordSize) 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:
toStringin classjava.lang.Object
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
-