IInkStrokeDisp::PolylineCusps

4/8/2010

Gets an array that contains the indices of the cusps of the IInkStrokeDisp object.

Syntax

[propget] HRESULT get_PolylineCusps (
  [out, retval] VARIANT *PolylineCusps
);

Parameters

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

The parameter pointer was NULL or invalid.

E_OUTOFMEMORY

Cannot allocate memory for the array.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

The array returned by the PolylineCusps property is an index into the array returned by the IInkStrokeDisp::GetPoints method. Each index in the PolylineCusps property corresponds to a point in the array returned by the GetPoints method that is a cusp of the points of the stroke.

A cusp is a point on the stroke where the direction of writing changes in a discontinuous fashion. For example, if the stroke represents the capital letter "L", this property returns three cusps: two corresponding to the first and last control points on the stroke and the third representing the corner of the "L".

The location of a cusp can be determined by using the cusp as an index into the array returned by the GetPoints method.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also

Concepts

Windows Mobile Ink Reference