public static class HemfFill.EmfStretchBlt extends HwmfFill.WmfStretchDib implements HemfRecord
Modifier and Type | Field and Description |
---|---|
protected HwmfColorRef |
bkColorSrc
A WMF ColorRef object that specifies the background color of the source bitmap.
|
protected java.awt.geom.Rectangle2D |
bounds |
protected java.awt.geom.AffineTransform |
xFormSrc
An XForm object that specifies a world-space to page-space transform to apply to the source bitmap.
|
bitmap, colorUsage, dstBounds, rasterOperation, srcBounds
Constructor and Description |
---|
EmfStretchBlt() |
Modifier and Type | Method and Description |
---|---|
void |
draw(HemfGraphics ctx)
Draws the record, the default redirects to the parent WMF record drawing
|
HwmfColorRef |
getBkColorSrc() |
java.awt.geom.Rectangle2D |
getBounds() |
HemfRecordType |
getEmfRecordType() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.lang.Enum |
getGenericRecordType() |
java.awt.geom.AffineTransform |
getXFormSrc() |
long |
init(LittleEndianInputStream leis,
long recordSize,
long recordId)
Init record from stream
|
protected boolean |
srcEqualsDstDimension() |
java.lang.String |
toString() |
draw, getBitmap, getBMPData, getColorUsage, getDstBounds, getImage, getRasterOperation, getSrcBounds, getWmfRecordType, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setHeader
getGenericChildren
getImage
protected final java.awt.geom.Rectangle2D bounds
protected final java.awt.geom.AffineTransform xFormSrc
protected final HwmfColorRef bkColorSrc
public HemfRecordType getEmfRecordType()
getEmfRecordType
in interface HemfRecord
public long init(LittleEndianInputStream leis, long recordSize, long recordId) throws java.io.IOException
HemfRecord
init
in interface HemfRecord
leis
- the little endian input streamrecordSize
- the size limit for this recordrecordId
- the id of the HemfRecordType
java.io.IOException
- when the inputstream is malformedprotected boolean srcEqualsDstDimension()
public void draw(HemfGraphics ctx)
HemfRecord
draw
in interface HemfRecord
ctx
- the drawing contextpublic java.lang.String toString()
toString
in class HwmfFill.WmfStretchDib
public java.awt.geom.Rectangle2D getBounds()
public java.awt.geom.AffineTransform getXFormSrc()
public HwmfColorRef getBkColorSrc()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
getGenericProperties
in class HwmfFill.WmfStretchDib
public java.lang.Enum getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in interface HemfRecord
getGenericRecordType
in interface HwmfRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.