EmfPlusPenData

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusStructureObjectType

public final class EmfPlusPenData extends EmfPlusStructureObjectType

The EmfPlusPenData object specifies properties of a graphics pen.

Constructors

ConstructorDescription
EmfPlusPenData()

Methods

MethodDescription
getPenDataFlags()Gets or sets 32-bit unsigned integer that specifies the data in the OptionalData field.
setPenDataFlags(int value)Gets or sets 32-bit unsigned integer that specifies the data in the OptionalData field.
getPenUnit()Gets or sets 32-bit unsigned integer that specifies the measuring units for the pen.
setPenUnit(int value)Gets or sets 32-bit unsigned integer that specifies the measuring units for the pen.
getPenWidth()Gets or sets 32-bit floating-point value that specifies the width of the line drawn by the pen in the units specified by the PenUnit field.
setPenWidth(float value)Gets or sets 32-bit floating-point value that specifies the width of the line drawn by the pen in the units specified by the PenUnit field.
getOptionalData()Gets or sets optional EmfPlusPenOptionalData object (section 2.2.2.34) that specifies additional data for the pen object.
setOptionalData(EmfPlusPenOptionalData value)Gets or sets optional EmfPlusPenOptionalData object (section 2.2.2.34) that specifies additional data for the pen object.

EmfPlusPenData()

public EmfPlusPenData()

getPenDataFlags()

public int getPenDataFlags()

Gets or sets 32-bit unsigned integer that specifies the data in the OptionalData field. This value MUST be composed of PenData flags (section 2.1.2.7).

Returns: int

setPenDataFlags(int value)

public void setPenDataFlags(int value)

Gets or sets 32-bit unsigned integer that specifies the data in the OptionalData field. This value MUST be composed of PenData flags (section 2.1.2.7).

Parameters:

ParameterTypeDescription
valueint

getPenUnit()

public int getPenUnit()

Gets or sets 32-bit unsigned integer that specifies the measuring units for the pen. The value MUST be from the UnitType enumeration (section 2.1.1.33).

Returns: int

setPenUnit(int value)

public void setPenUnit(int value)

Gets or sets 32-bit unsigned integer that specifies the measuring units for the pen. The value MUST be from the UnitType enumeration (section 2.1.1.33).

Parameters:

ParameterTypeDescription
valueint

getPenWidth()

public float getPenWidth()

Gets or sets 32-bit floating-point value that specifies the width of the line drawn by the pen in the units specified by the PenUnit field. If a zero width is specified, a minimum value is used, which is determined by the units

Returns: float

setPenWidth(float value)

public void setPenWidth(float value)

Gets or sets 32-bit floating-point value that specifies the width of the line drawn by the pen in the units specified by the PenUnit field. If a zero width is specified, a minimum value is used, which is determined by the units

Parameters:

ParameterTypeDescription
valuefloat

getOptionalData()

public EmfPlusPenOptionalData getOptionalData()

Gets or sets optional EmfPlusPenOptionalData object (section 2.2.2.34) that specifies additional data for the pen object. The specific contents of this field are determined by the value of the PenDataFlags field.

Returns: EmfPlusPenOptionalData

setOptionalData(EmfPlusPenOptionalData value)

public void setOptionalData(EmfPlusPenOptionalData value)

Gets or sets optional EmfPlusPenOptionalData object (section 2.2.2.34) that specifies additional data for the pen object. The specific contents of this field are determined by the value of the PenDataFlags field.

Parameters:

ParameterTypeDescription
valueEmfPlusPenOptionalData