IInkStrokeDisp::FindIntersections method (msinkaut.h)
Retrieves the points where this IInkStrokeDisp object intersects other IInkStrokeDisp objects within a known InkStrokes collection.
Syntax
HRESULT FindIntersections(
[in] IInkStrokes *Strokes,
[out, retval] VARIANT *Intersections
);
Parameters
[in] Strokes
The known collection of strokes that are used to calculate the points where this stroke intersects strokes in the collection. If NULL, use all strokes in the InkDisp object.
[out, retval] Intersections
When this method returns, contains an array of floating point index values that indicate the locations where this stroke intersects strokes within a known collection of strokes.
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.
For more information about the VARIANT structure, see Using the COM Library.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
Cannot allocate an IInkStrokeDisp handle helper object. |
|
Unexpected parameter or property type. |
|
An exception occurred inside the method. |
|
The strokes parameter does not point to a compatible InkDisp object. |
|
The InkDisp object of the InkStrokes collection and this IInkStrokeDisp object don't match. |
Remarks
This method can determine only the points of intersection.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |