[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.Outline

Outline Method

Outline(GeometrySink)

Computes the outline of the geometry and writes the result to an SimplifiedGeometrySink.

Declaration
public void Outline(GeometrySink geometrySink)
Parameters
Type Name Description
GeometrySink geometrySink

The SimplifiedGeometrySink to which the geometry's transformed outline is appended.

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.

Outline(float, GeometrySink)

Computes the outline of the geometry and writes the result to an SimplifiedGeometrySink.

Declaration
public void Outline(float flatteningTolerance, GeometrySink geometrySink)
Parameters
Type Name Description
float 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 geometrySink

The SimplifiedGeometrySink to which the geometry's transformed outline is appended.

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.

Outline(Matrix3x2?, float, GeometrySink)

Computes the outline of the geometry and writes the result to an SimplifiedGeometrySink.

Declaration
public void Outline(Matrix3x2? worldTransform, float flatteningTolerance, GeometrySink geometrySink)
Parameters
Type Name Description
Matrix3x2? worldTransform

The transform to apply to the geometry outline, or NULL.

float 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 geometrySink

The SimplifiedGeometrySink to which the geometry's transformed outline is appended.

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.