public static class HwmfFill.WmfSetDibToDev extends java.lang.Object implements HwmfRecord, HwmfFill.HwmfImageRecord, HwmfObjectTableEntry
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
dstBounds
the destination rectangle, having the same dimension as the source rectangle
|
protected java.awt.geom.Rectangle2D |
srcBounds
the source rectangle
|
Constructor and Description |
---|
WmfSetDibToDev() |
Modifier and Type | Method and Description |
---|---|
void |
applyObject(HwmfGraphics ctx) |
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
|
byte[] |
getBMPData() |
HwmfFill.ColorUsage |
getColorUsage() |
java.awt.geom.Rectangle2D |
getDstBounds() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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
|
int |
getScanCount() |
java.awt.geom.Rectangle2D |
getSrcBounds() |
int |
getStartScan() |
HwmfRecordType |
getWmfRecordType() |
int |
init(LittleEndianInputStream leis,
long recordSize,
int recordFunction)
Init record from stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericRecordType
getGenericChildren
getImage
protected final java.awt.geom.Rectangle2D srcBounds
protected final java.awt.geom.Rectangle2D dstBounds
public HwmfRecordType getWmfRecordType()
getWmfRecordType
in interface HwmfRecord
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface HwmfRecord
leis
- the little endian input streamjava.io.IOException
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface HwmfRecord
ctx
- the graphics context to modifypublic void applyObject(HwmfGraphics ctx)
applyObject
in interface HwmfObjectTableEntry
public java.awt.image.BufferedImage getImage(java.awt.Color foreground, java.awt.Color background, boolean hasAlpha)
HwmfFill.HwmfImageRecord
getImage
in interface HwmfFill.HwmfImageRecord
foreground
- the foreground colorbackground
- the background colorhasAlpha
- if true, the background color is rendered transparent - see HwmfMisc.WmfSetBkMode.HwmfBkMode
public byte[] getBMPData()
getBMPData
in interface HwmfFill.HwmfImageRecord
public HwmfFill.ColorUsage getColorUsage()
public int getScanCount()
public int getStartScan()
public java.awt.geom.Rectangle2D getSrcBounds()
public java.awt.geom.Rectangle2D getDstBounds()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.