IXRShape::SetStrokeMiterLimit (Compact 2013)

3/28/2014

This method sets a new limit on the ratio of the miter length to half the width of the stroke in a shape object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetStrokeMiterLimit(
    float StrokeMiterLimit
) = 0; 

Parameters

  • StrokeMiterLimit
    [in] A float value that indicates the new limit on the ratio the miter length to half the width of the stroke in a shape object.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

A miter forms a corner by beveling the ends of two connected lines. When two line segments meet at a small, sharp angle, the miter can extend beyond the thickness of the line that strokes the path.

The width of a stroke is measured by the value retrieved by IXRShape::GetStrokeThickness.

Generally, you should use integral numeric values for this setting. Non-integral values can cause sub-pixel rendering, and might alter the apparent color of the stroke.

.NET Framework Equivalent

System.Windows.Shapes.Shape.StrokeMiterLimit

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRShape
IXRShape::GetStrokeMiterLimit