Package org.apache.poi.hwmf.record
Class HwmfBitmapDib
- java.lang.Object
-
- org.apache.poi.hwmf.record.HwmfBitmapDib
-
public class HwmfBitmapDib extends java.lang.Object
The DeviceIndependentBitmap Object defines an image in device-independent bitmap (DIB) format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HwmfBitmapDib.BitCount
static class
HwmfBitmapDib.Compression
-
Constructor Summary
Constructors Constructor Description HwmfBitmapDib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getBMPStream()
java.awt.image.BufferedImage
getImage()
int
init(LittleEndianInputStream leis, int recordSize)
protected int
readColors(LittleEndianInputStream leis)
protected int
readHeader(LittleEndianInputStream leis)
protected int
readRGBQuad(LittleEndianInputStream leis, int count)
-
-
-
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
-
getBMPStream
public java.io.InputStream getBMPStream()
-
getImage
public java.awt.image.BufferedImage getImage()
-
-