public static class HwmfFill.WmfDibStretchBlt extends java.lang.Object implements HwmfRecord, HwmfFill.HwmfImageRecord
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.geom.Rectangle2D |
dstBounds
the destination rectangle
|
protected HwmfTernaryRasterOp |
rasterOperation
A 32-bit unsigned integer that defines how the source pixels, the current brush
in the playback device context, and the destination pixels are to be combined to form the
new image.
|
protected java.awt.geom.Rectangle2D |
srcBounds
the source rectangle
|
protected HwmfBitmapDib |
target
A variable-sized DeviceIndependentBitmap Object that defines image content.
|
| Constructor and Description |
|---|
WmfDibStretchBlt() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
|
byte[] |
getBMPData() |
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
|
HwmfTernaryRasterOp |
getRasterOperation() |
java.awt.geom.Rectangle2D |
getSrcBounds() |
HwmfBitmapDib |
getTarget() |
HwmfRecordType |
getWmfRecordType() |
int |
init(LittleEndianInputStream leis,
long recordSize,
int recordFunction)
Init record from stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericRecordTypegetGenericChildrengetImageprotected HwmfTernaryRasterOp rasterOperation
protected final java.awt.geom.Rectangle2D srcBounds
protected final java.awt.geom.Rectangle2D dstBounds
protected HwmfBitmapDib target
public HwmfRecordType getWmfRecordType()
getWmfRecordType in interface HwmfRecordpublic int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecordinit in interface HwmfRecordleis - the little endian input streamjava.io.IOExceptionpublic void draw(HwmfGraphics ctx)
HwmfRecorddraw in interface HwmfRecordctx - the graphics context to modifypublic java.awt.image.BufferedImage getImage(java.awt.Color foreground,
java.awt.Color background,
boolean hasAlpha)
HwmfFill.HwmfImageRecordgetImage in interface HwmfFill.HwmfImageRecordforeground - the foreground colorbackground - the background colorhasAlpha - if true, the background color is rendered transparent - see HwmfMisc.WmfSetBkMode.HwmfBkModepublic byte[] getBMPData()
getBMPData in interface HwmfFill.HwmfImageRecordpublic HwmfTernaryRasterOp getRasterOperation()
public java.awt.geom.Rectangle2D getSrcBounds()
public java.awt.geom.Rectangle2D getDstBounds()
public HwmfBitmapDib getTarget()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordCopyright 2022 The Apache Software Foundation or its licensors, as applicable.