[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.GetWidenedBounds

GetWidenedBounds Method

GetWidenedBounds(float)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

Declaration
public RectF GetWidenedBounds(float strokeWidth)
Parameters
Type Name Description
float strokeWidth

The amount by which to widen the geometry by stroking its outline.

Returns
Type Description
RectF

When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter.

GetWidenedBounds(float, float)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

Declaration
public RectF GetWidenedBounds(float strokeWidth, float flatteningTolerance)
Parameters
Type Name Description
float strokeWidth

The amount by which to widen the geometry by stroking its outline.

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.

Returns
Type Description
RectF

When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter.

GetWidenedBounds(float, StrokeStyle, float)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

Declaration
public RectF GetWidenedBounds(float strokeWidth, StrokeStyle strokeStyle, float flatteningTolerance)
Parameters
Type Name Description
float strokeWidth

The amount by which to widen the geometry by stroking its outline.

StrokeStyle strokeStyle

The style of the stroke that widens the geometry.

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.

Returns
Type Description
RectF

When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter.

GetWidenedBounds(float, StrokeStyle, Matrix3x2?, float)

HRESULT ID2D1Geometry::GetWidenedBounds([In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] D2D_RECT_F* bounds)

Declaration
public RectF GetWidenedBounds(float strokeWidth, StrokeStyle strokeStyle, Matrix3x2? worldTransform, float flatteningTolerance)
Parameters
Type Name Description
float strokeWidth
StrokeStyle strokeStyle
Matrix3x2? worldTransform
float flatteningTolerance
Returns
Type Description
RectF