Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Geometry Class / Outline Method / Outline(Single,IGeometrySink) Method
The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution.
The ISimplifiedGeometrySink to which the geometry's transformed outline is appended.

In This Topic
    Outline(Single,IGeometrySink) Method
    In This Topic
    Computes the outline of the geometry and writes the result to an ISimplifiedGeometrySink.
    Syntax
    'Declaration
     
    Public Overloads Sub Outline( _
       ByVal flatteningTolerance As System.Single, _
       ByVal geometrySink As IGeometrySink _
    ) 
    public void Outline( 
       System.float flatteningTolerance,
       IGeometrySink geometrySink
    )

    Parameters

    flatteningTolerance
    The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution.
    geometrySink
    The ISimplifiedGeometrySink to which the geometry's transformed outline is appended.

    Return Value

    If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
    Remarks
    The {{Outline}} method allows the caller to produce a geometry with an equivalent fill to the input geometry, with the following additional properties: The output geometry contains no transverse intersections; that is, segments may touch, but they never cross.The outermost figures in the output geometry are all oriented counterclockwise. The output geometry is fill-mode invariant; that is, the fill of the geometry does not depend on the choice of the fill mode. For more information about the fill mode, see FillMode.Additionally, the {{Outline}} method can be useful in removing redundant portions of said geometries to simplify complex geometries. It can also be useful in combination with GeometryGroup to create unions among several geometries simultaneously.
    See Also