public class HwmfBitmapDib extends java.lang.Object implements GenericRecord
Modifier and Type | Class and Description |
---|---|
static class |
HwmfBitmapDib.BitCount |
static class |
HwmfBitmapDib.Compression |
Constructor and Description |
---|
HwmfBitmapDib() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public int init(LittleEndianInputStream leis, int recordSize) throws java.io.IOException
java.io.IOException
protected int readHeader(LittleEndianInputStream leis)
protected int readColors(LittleEndianInputStream leis) throws java.io.IOException
java.io.IOException
protected int readRGBQuad(LittleEndianInputStream leis, int count) throws java.io.IOException
java.io.IOException
public boolean isValid()
public java.io.InputStream getBMPStream()
public byte[] getBMPData()
public java.awt.image.BufferedImage getImage()
public java.awt.image.BufferedImage getImage(java.awt.Color foreground, java.awt.Color background, boolean hasAlpha)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
protected java.awt.image.BufferedImage getPlaceholder()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.