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 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()InputStreamgetBMPStream()Map<String,Supplier<?>>getGenericProperties()BufferedImagegetImage()BufferedImagegetImage(Color foreground, Color background, boolean hasAlpha)protected BufferedImagegetPlaceholder()intinit(LittleEndianInputStream leis, int recordSize)booleanisValid()protected intreadColors(LittleEndianInputStream leis)protected intreadHeader(LittleEndianInputStream leis)protected intreadRGBQuad(LittleEndianInputStream leis, int count)StringtoString()-
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
-
-
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis, int recordSize) throws IOException
- Throws:
IOException
-
readHeader
protected int readHeader(LittleEndianInputStream leis)
-
readColors
protected int readColors(LittleEndianInputStream leis) throws IOException
- Throws:
IOException
-
readRGBQuad
protected int readRGBQuad(LittleEndianInputStream leis, int count) throws IOException
- Throws:
IOException
-
isValid
public boolean isValid()
-
getBMPStream
public InputStream getBMPStream()
-
getBMPData
public byte[] getBMPData()
-
getImage
public BufferedImage getImage()
-
getImage
public BufferedImage getImage(Color foreground, Color background, boolean hasAlpha)
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
getPlaceholder
protected BufferedImage getPlaceholder()
-
-