Nevron .NET Vision
Nevron.Diagram Namespace / NPathPrimitive Class / Flatten Method / Flatten(Matrix,Single) Method
a Matrix object by which to transform this GraphicsPath before flattening
Specifies the maximum permitted error between the curve and its flattened approximation. Reducing the flatness value will increase the number of line segments in the approximation.


In This Topic
    Flatten(Matrix,Single) Method
    In This Topic
    Converts each curve of the graphics path representing this object into a sequence of connected line segments
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Flatten( _
       ByVal matrix As System.Drawing.Drawing2D.Matrix, _
       ByVal flatness As System.Single _
    ) As System.Drawing.Drawing2D.GraphicsPath
    'Usage
     
    
    Dim instance As NPathPrimitive
    Dim matrix As System.Drawing.Drawing2D.Matrix
    Dim flatness As System.Single
    Dim value As System.Drawing.Drawing2D.GraphicsPath
     
    value = instance.Flatten(matrix, flatness)
    public virtual System.Drawing.Drawing2D.GraphicsPath Flatten( 
       System.Drawing.Drawing2D.Matrix matrix,
       System.float flatness
    )

    Parameters

    matrix
    a Matrix object by which to transform this GraphicsPath before flattening
    flatness
    Specifies the maximum permitted error between the curve and its flattened approximation. Reducing the flatness value will increase the number of line segments in the approximation.

    Return Value

    flat graphics path
    Remarks
    You need to dispose the returned graphics path
    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