EmfLogPenEx Class
The LogPenEx object specifies the style, width, and color of an extended logical pen.
Inheritance Hierarchy
SystemObject
  Aspose.Imaging.FileFormats.EmfMetaObject
    Aspose.Imaging.FileFormats.Emf.Emf.ObjectsEmfObject
      Aspose.Imaging.FileFormats.Emf.Emf.ObjectsEmfBasePen
        Aspose.Imaging.FileFormats.Emf.Emf.ObjectsEmfLogPenEx

Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Objects
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.05
Syntax
public sealed class EmfLogPenEx : EmfBasePen

The EmfLogPenEx type exposes the following members.

Constructors
  NameDescription
Public methodEmfLogPenEx
Initializes a new instance of the EmfLogPenEx class
Properties
  NameDescription
Public propertyArgb32ColorRef
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8). The interpretation of this field depends on the BrushStyle value, as shown in the table later in this section.
(Overrides EmfBasePenArgb32ColorRef.)
Public propertyBrushDibPattern
Gets or sets the brush dib pattern.
Public propertyBrushHatch
Gets or sets the brush hatch pattern. The definition of this field depends on the BrushStyle value, as shown in the table later in this section.
Public propertyBrushStyle
Gets or sets a 32-bit unsigned integer that specifies a brush style for the pen from the WMF BrushStyle enumeration ([MS-WMF] section 2.1.1.4). If the pen type in the PenStyle field is PS_GEOMETRIC, this value MUST be either BS_SOLID or BS_HATCHED. The value of this field can be BS_NULL, but only if the line style specified in PenStyle is PS_NULL. The BS_NULL style SHOULD be used to specify a brush that has no effect.
Public propertyNumStyleEntities
Gets the number of elements in the array specified in the StyleEntry field. This value SHOULD be zero if PenStyle does not specify PS_USERSTYLE.
Public propertyPenStyle
Gets or sets the pen style
(Overrides EmfBasePenPenStyle.)
Public propertyStyleEntry
Gets or sets an optional array of 32-bit unsigned integers that defines the lengths of dashes and gaps in the line drawn by this pen, when the value of PenStyle is PS_USERSTYLE line style for the pen. The array contains a number of entries specified by NumStyleEntries, but it is used as if it repeated indefinitely The first entry in the array specifies the length of the first dash. The second entry specifies the length of the first gap. Thereafter, lengths of dashes and gaps alternate. If the pen type in the PenStyle field is PS_GEOMETRIC, the lengths are specified in logical units; otherwise, the lengths are specified in device units.
Public propertyWidth
Gets or sets a 32-bit unsigned integer that specifies the width of the line drawn by the pen. If the pen type in the PenStyle field is PS_GEOMETRIC, this value is the width in logical units; otherwise, the width is specified in device units. If the pen type in the PenStyle field is PS_COSMETIC, this value MUST be 0x00000001.
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also