public static class HwmfMisc.WmfDibCreatePatternBrush extends java.lang.Object implements HwmfRecord, HwmfFill.HwmfImageRecord, HwmfObjectTableEntry
Modifier and Type | Field and Description |
---|---|
protected HwmfFill.ColorUsage |
colorUsage
A 16-bit unsigned integer that defines whether the Colors field of a DIB
Object contains explicit RGB values, or indexes into a palette.
|
protected HwmfBitmapDib |
patternDib |
protected HwmfBrushStyle |
style |
Constructor and Description |
---|
WmfDibCreatePatternBrush() |
Modifier and Type | Method and Description |
---|---|
void |
applyObject(HwmfGraphics ctx) |
void |
draw(HwmfGraphics ctx)
Apply the record settings to the graphics context
|
java.awt.image.BufferedImage |
getImage() |
HwmfRecordType |
getWmfRecordType() |
int |
init(LittleEndianInputStream leis,
long recordSize,
int recordFunction)
Init record from stream
|
protected HwmfBrushStyle style
protected HwmfFill.ColorUsage colorUsage
protected HwmfBitmapDib patternDib
public HwmfRecordType getWmfRecordType()
getWmfRecordType
in interface HwmfRecord
public int init(LittleEndianInputStream leis, long recordSize, int recordFunction) throws java.io.IOException
HwmfRecord
init
in interface HwmfRecord
leis
- the little endian input streamjava.io.IOException
public void draw(HwmfGraphics ctx)
HwmfRecord
draw
in interface HwmfRecord
ctx
- the graphics context to modifypublic void applyObject(HwmfGraphics ctx)
applyObject
in interface HwmfObjectTableEntry
public java.awt.image.BufferedImage getImage()
getImage
in interface HwmfFill.HwmfImageRecord
Copyright 2019 The Apache Software Foundation or its licensors, as applicable.