EmfCreateMonoBrush

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.records.EmfRecord, com.aspose.imaging.fileformats.emf.emf.records.EmfObjectCreationRecordType

public final class EmfCreateMonoBrush extends EmfObjectCreationRecordType

The EMR_CREATEMONOBRUSH record defines a monochrome pattern brush for graphics operations. The pattern is specified by a monochrome DIB.

Constructors

ConstructorDescription
EmfCreateMonoBrush(EmfRecord source)Initializes a new instance of the EmfCreateMonoBrush class.

Methods

MethodDescription
getIhBrush()Gets or sets a 32-bit unsigned integer that specifies the index of the monochrome pattern brush object in the EMF Object Table (section 3.1.1.1).
setIhBrush(int value)Gets or sets a 32-bit unsigned integer that specifies the index of the monochrome pattern brush object in the EMF Object Table (section 3.1.1.1).
getUsage()Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the DIB header.
setUsage(int value)Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the DIB header.
getBitmapBuffer()Gets or sets a buffer containing a packed DIB in the form of a WMF DeviceIndependentBitmap object ([MS-WMF] section 2.2.2.9).
setBitmapBuffer(WmfDeviceIndependentBitmap value)Gets or sets a buffer containing a packed DIB in the form of a WMF DeviceIndependentBitmap object ([MS-WMF] section 2.2.2.9).

EmfCreateMonoBrush(EmfRecord source)

public EmfCreateMonoBrush(EmfRecord source)

Initializes a new instance of the EmfCreateMonoBrush class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

getIhBrush()

public int getIhBrush()

Gets or sets a 32-bit unsigned integer that specifies the index of the monochrome pattern brush object in the EMF Object Table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.

Returns: int

setIhBrush(int value)

public void setIhBrush(int value)

Gets or sets a 32-bit unsigned integer that specifies the index of the monochrome pattern brush object in the EMF Object Table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.

Parameters:

ParameterTypeDescription
valueint

getUsage()

public int getUsage()

Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the DIB header. This value MUST be in the DIBColors enumeration (section 2.1.9).

Returns: int

setUsage(int value)

public void setUsage(int value)

Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the DIB header. This value MUST be in the DIBColors enumeration (section 2.1.9).

Parameters:

ParameterTypeDescription
valueint

getBitmapBuffer()

public WmfDeviceIndependentBitmap getBitmapBuffer()

Gets or sets a buffer containing a packed DIB in the form of a WMF DeviceIndependentBitmap object ([MS-WMF] section 2.2.2.9). It is not required to be contiguous with the fixed portion of the EMR_CREATEDIBPATTERNBRUSHPT record.

Returns: WmfDeviceIndependentBitmap

setBitmapBuffer(WmfDeviceIndependentBitmap value)

public void setBitmapBuffer(WmfDeviceIndependentBitmap value)

Gets or sets a buffer containing a packed DIB in the form of a WMF DeviceIndependentBitmap object ([MS-WMF] section 2.2.2.9). It is not required to be contiguous with the fixed portion of the EMR_CREATEDIBPATTERNBRUSHPT record.

Parameters:

ParameterTypeDescription
valueWmfDeviceIndependentBitmap