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
(在 1 位模式的情况下,使用前/背景颜色提供图像)
|
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
(接口 HwmfRecord 中的 getWmfRecordType)
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface
HwmfRecord
(接口 HwmfRecord 中的 init)
leis
- the little endian input stream
(leis - 小端输入流)
java.io.IOException
(java.io.IOException)
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface
HwmfRecord
(在接口 HwmfRecord 中绘制)
ctx
- the graphics context to modify
(ctx - 要修改的图形上下文)
public void applyObject(HwmfGraphics ctx)
applyObject
in interface
HwmfObjectTableEntry
(接口 HwmfObjectTableEntry 中的 applyObject)
public java.awt.image.BufferedImage getImage(java.awt.Color foreground, java.awt.Color background, boolean hasAlpha)
HwmfFill.HwmfImageRecord
getImage
in interface
HwmfFill.HwmfImageRecord
(接口 HwmfFill.HwmfImageRecord 中的 getImage)
foreground
- the foreground color
(foreground - 前景色)
background
- the background color
(背景 - 背景颜色)
hasAlpha
- if true, the background color is rendered transparent - see
HwmfMisc.WmfSetBkMode.HwmfBkMode
(hasAlpha - 如果为 true,则背景颜色呈现为透明 - 参见 HwmfMisc.WmfSetBkMode.HwmfBkMode)
public byte[] getBMPData()
getBMPData
in interface
HwmfFill.HwmfImageRecord
(接口 HwmfFill.HwmfImageRecord 中的 getBMPData)
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
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.