Nevron .NET Vision
Nevron.GraphicsCore Namespace / NStrokeStyle Class / Factor Property
Example


In This Topic
    Factor Property
    In This Topic
    A multiplier for each bit in the line stipple pattern.
    Syntax
    'Declaration
     
    
    <System.Xml.Serialization.XmlAttributeAttribute()>
    <System.ComponentModel.DefaultValueAttribute(1)>
    Public Property Factor As System.Integer
    'Usage
     
    
    Dim instance As NStrokeStyle
    Dim value As System.Integer
     
    instance.Factor = value
     
    value = instance.Factor
    [System.Xml.Serialization.XmlAttribute()]
    [System.ComponentModel.DefaultValue(1)]
    public System.int Factor {get; set;}
    Remarks
    The Pattern and Factor properties define the line by working together to define whether a certain pixel from the line should be drawn or not. If factor is 3, for example, each bit in the pattern will be used three times before the next bit in the pattern is used. The factor parameter is clamped to the range [1, 256] and defaults to one. The values of the LinePattern enumeration actually represent 16-bit integers whose bit pattern determines which fragments of a line will be drawn when the line is rasterized.
    Example
    The following example shows how to define a custom pattern and modify the factor.
    strokeStyke.Color = System.Drawing.Color.Black
    strokeStyke.Pattern = CType(0x8888, LinePattern)
    strokeStyke.Factor = 3
    strokeStyke.Color = System.Drawing.Color.Black;
    strokeStyke.Pattern = (LinePattern)0x8888;
    strokeStyke.Factor = 3;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also