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
|
HemfRecordType |
getEmfRecordType() |
long |
init(LittleEndianInputStream leis,
long recordSize,
long recordId)
Init record from stream
|
protected boolean |
srcEqualsDstDimension() |
java.lang.String |
toString() |
draw, getImage, getWmfRecordType, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setHeader
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
Copyright 2019 The Apache Software Foundation or its licensors, as applicable.