Class EmfLogPenEx
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Objects
Assembly: Aspose.Imaging.dll (25.7.0)
The LogPenEx object specifies the style, width, and color of an extended logical pen.
public sealed class EmfLogPenEx : EmfBasePen
{
public EmfLogPenEx(float flX, float flY, Color clr, short iStyle, short iWidth, byte iCap, byte iJoin, byte iMiterLimit)
{
this.flX = flX;
this.flY = flY;
this.clr = clr;
this.iStyle = iStyle;
this.iWidth = iWidth;
this.iCap = iCap;
this.iJoin = iJoin;
this.iMiterLimit = iMiterLimit;
}
public float flX { get; private set; }
public float flY { get; private set; }
public Color clr { get; private set; }
public short iStyle { get; private set; }
public short iWidth { get; private set; }
public byte iCap { get; private set; }
public byte iJoin { get; private set; }
public byte iMiterLimit { get; private set; }
}
Inheritance
object ← MetaObject ← EmfObject ← EmfBasePen ← EmfLogPenEx
Inherited Members
EmfBasePen.PenStyle , EmfBasePen.Argb32ColorRef , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
EmfLogPenEx()
public EmfLogPenEx()
{
}
Properties
Argb32ColorRef
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8). The interpretation of thisfield depends on the BrushStyle value, as shown in the table later in this section.
public override int Argb32ColorRef
{
get;
set;
}
Property Value
BrushDibPattern
Gets or sets the brush dib pattern.
public WmfDeviceIndependentBitmap BrushDibPattern
{
get;
set;
}
Property Value
BrushHatch
Gets or sets the brush hatch pattern. The definition of this field depends on theBrushStyle value, as shown in the table later in this section.
public EmfHatchStyle BrushHatch
{
get;
set;
}
Property Value
BrushStyle
Gets or sets a 32-bit unsigned integer that specifies a brush style for the pen from theWMF BrushStyle enumeration ([MS-WMF] section 2.1.1.4).If the pen type in the PenStyle field is PS_GEOMETRIC, this value MUST be eitherBS_SOLID or BS_HATCHED. The value of this field can be BS_NULL, but only if theline style specified in PenStyle is PS_NULL. The BS_NULL style SHOULD be usedto specify a brush that has no effect.
public WmfBrushStyle BrushStyle
{
get;
set;
}
Property Value
NumStyleEntities
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 int NumStyleEntities
{
get;
}
Property Value
PenStyle
Gets or sets the pen style
public override EmfPenStyle PenStyle
{
get;
set;
}
Property Value
StyleEntry
Gets or sets an optional array of 32-bit unsigned integers that defines the lengths ofdashes and gaps in the line drawn by this pen, when the value of PenStyleis PS_USERSTYLE line style for the pen. The array contains a number ofentries specified by NumStyleEntries, but it is used as if it repeated indefinitelyThe first entry in the array specifies the length of the first dash. The secondentry 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 inlogical units; otherwise, the lengths are specified in device units.
public int[] StyleEntry
{
get
{
}
set
{
}
}
Property Value
int []
Width
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 inlogical 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.
public int Width
{
get;
set;
}