EmfCreatePen

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 EmfCreatePen extends EmfObjectCreationRecordType

The EMR_CREATEPEN record defines a logical pen for graphics operations.

Constructors

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

Methods

MethodDescription
getIhPen()Gets or sets a 32-bit unsigned integer that specifies the index of the logical pen object in the EMF Object Table (section 3.1.1.1).
setIhPen(int value)Gets or sets a 32-bit unsigned integer that specifies the index of the logical pen object in the EMF Object Table (section 3.1.1.1).
getLogPen()Gets or sets a LogPen object (section 2.2.19) that specifies the style, width, and color of the logical pen.
setLogPen(EmfLogPen value)Gets or sets a LogPen object (section 2.2.19) that specifies the style, width, and color of the logical pen.

EmfCreatePen(EmfRecord source)

public EmfCreatePen(EmfRecord source)

Initializes a new instance of the EmfCreatePen class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

EmfCreatePen()

public EmfCreatePen()

Initializes a new instance of the EmfCreatePen class.

getIhPen()

public int getIhPen()

Gets or sets a 32-bit unsigned integer that specifies the index of the logical pen 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

setIhPen(int value)

public void setIhPen(int value)

Gets or sets a 32-bit unsigned integer that specifies the index of the logical pen 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

getLogPen()

public EmfLogPen getLogPen()

Gets or sets a LogPen object (section 2.2.19) that specifies the style, width, and color of the logical pen.

Returns: EmfLogPen

setLogPen(EmfLogPen value)

public void setLogPen(EmfLogPen value)

Gets or sets a LogPen object (section 2.2.19) that specifies the style, width, and color of the logical pen.

Parameters:

ParameterTypeDescription
valueEmfLogPen