Partager via


IInkStrokeDisp::SelfIntersections

4/8/2010

Returns the self–intersections of the IInkStrokeDisp object.

Syntax

[propget] HRESULT get_SelfIntersections (
  [out, retval] VARIANT *SelfIntersections
);

Parameters

  • SelfIntersections
    An array of floating point index values that represents the self-intersections of a IInkStrokeDisp object.

    This property is read only.

    For more information about the VARIANT structure, see Using the Automation Library with Windows Mobile Ink.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

The parameter pointer was NULL or invalid.

E_OUTOFMEMORY

Cannot allocate memory for the points.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

A self-intersection is the point of a stroke where the stroke crosses over itself.

A floating point index is a float value that represents a location somewhere between two points in the stroke. As examples, if 0.0 is the first point in the stroke and 1.0 is the second point in the stroke, 0.5 is halfway between the first and second points. Similarly, a floating point index value of 37.25 represents a location that is 25 percent along the line between points 37 and 38 of the stroke.

Note

A floating point index is returned for each intersection and line segment combination. If a stroke has one intersection, this property returns two self intersections, one for each line segment that is part of the intersection.

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