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
|
byte[] |
getBMPData() |
HwmfFill.ColorUsage |
getColorUsage() |
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
|
HwmfBrushStyle |
getStyle() |
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 HwmfBrushStyle style
protected HwmfFill.ColorUsage colorUsage
protected HwmfBitmapDib patternDib
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 void applyObject(HwmfGraphics ctx)
applyObject in interface HwmfObjectTableEntrypublic 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 HwmfBrushStyle getStyle()
public HwmfFill.ColorUsage getColorUsage()
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.