public static class HwmfFill.WmfStretchDib extends Object implements HwmfRecord, HwmfFill.HwmfImageRecord
| Modifier and Type | Field and Description |
|---|---|
protected HwmfBitmapDib |
bitmap
A variable-sized DeviceIndependentBitmap Object (section 2.2.2.9) that is the
source of the color data.
|
protected HwmfFill.ColorUsage |
colorUsage
A 16-bit unsigned integer that defines whether the Colors field of the
DIB contains explicit RGB values or indexes into a palette.
|
protected 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 Rectangle2D |
srcBounds
the source rectangle.
|
| Constructor and Description |
|---|
WmfStretchDib() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
|
HwmfBitmapDib |
getBitmap() |
byte[] |
getBMPData() |
HwmfFill.ColorUsage |
getColorUsage() |
Rectangle2D |
getDstBounds() |
Map<String,Supplier<?>> |
getGenericProperties() |
BufferedImage |
getImage(Color foreground,
Color background,
boolean hasAlpha)
Provide an image using the fore-/background color, in case of a 1-bit pattern
|
HwmfTernaryRasterOp |
getRasterOperation() |
Rectangle2D |
getSrcBounds() |
HwmfRecordType |
getWmfRecordType() |
int |
init(LittleEndianInputStream leis,
long recordSize,
int recordFunction)
Init record from stream
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericRecordTypegetGenericChildrengetImageprotected HwmfTernaryRasterOp rasterOperation
protected HwmfFill.ColorUsage colorUsage
protected final Rectangle2D srcBounds
protected final Rectangle2D dstBounds
protected final HwmfBitmapDib bitmap
public HwmfRecordType getWmfRecordType()
getWmfRecordType in interface HwmfRecordpublic int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws IOException
HwmfRecordinit in interface HwmfRecordleis - the little endian input streamIOExceptionpublic void draw(HwmfGraphics ctx)
HwmfRecorddraw in interface HwmfRecordctx - the graphics context to modifypublic BufferedImage getImage(Color foreground, 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 HwmfBitmapDib getBitmap()
public byte[] getBMPData()
getBMPData in interface HwmfFill.HwmfImageRecordpublic HwmfTernaryRasterOp getRasterOperation()
public HwmfFill.ColorUsage getColorUsage()
public Rectangle2D getSrcBounds()
public Rectangle2D getDstBounds()
public Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecord