Partager via


CD2DGeometry::Simplify

Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an ID2D1SimplifiedGeometrySink.

BOOL Simplify(
   D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption,
   const D2D1_MATRIX_3X2_F& worldTransform,
   ID2D1SimplifiedGeometrySink* geometrySink,
   FLOAT flatteningTolerance = D2D1_DEFAULT_FLATTENING_TOLERANCE
) const;

Parameters

  • simplificationOption
    A value that specifies whether the simplified geometry should contain curves.

  • worldTransform
    The transform to apply to the simplified geometry.

  • geometrySink
    The ID2D1SimplifiedGeometrySink to which the simplified geometry is appended.

  • 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.

Return Value

If the method succeeds, it returns TRUE. Otherwise, it returns FALSE.

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DGeometry Class