Partager via


IXRShape::GetStrokeMiterLimit (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetStrokeMiterLimit(
    float *pStrokeMiterLimit
) = 0;

Parameters

  • pStrokeMiterLimit
    [out] Pointer to a float value that indicates the 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::SetStrokeMiterLimit