共用方式為


CD2DGeometry::Widen

Widens the geometry by the specified stroke and writes the result to an ID2D1SimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.

BOOL Widen(
   FLOAT strokeWidth,
   ID2D1StrokeStyle* strokeStyle,
   const D2D1_MATRIX_3X2_F& worldTransform,
   ID2D1SimplifiedGeometrySink* geometrySink,
   FLOAT flatteningTolerance = D2D1_DEFAULT_FLATTENING_TOLERANCE
) const;

Parameters

  • strokeWidth
    The amount by which to widen the geometry.

  • strokeStyle
    The style of stroke to apply to the geometry, or NULL.

  • worldTransform
    The transform to apply to the geometry after widening it.

  • geometrySink
    The ID2D1SimplifiedGeometrySink to which the widened 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