Share via


IInkStrokeDisp Interface

IInkStrokeDisp Interface

Represents a single ink stroke.

A stroke is a set of properties and point data that the digitizer captures that represent the coordinates and properties of a known ink mark. It is the set of data that is captured in a single pen down, up, or move sequence.

Members

Method Description
Clip Removes the portions of the IInkStrokeDisp that are outside a rectangle.
FindIntersections Finds the points where this IInkStrokeDisp intersects other strokes within an InkStrokes collection.

This method can determine only the points of intersection.

GetBoundingBox Returns a rectangle, in ink space coordinates, that corresponds to the portion of the display to invalidate or redraw when displaying a IInkStrokeDisp.
GetFlattenedBezierPoints Returns the array of actual points that are used to approximate the Bezier representation of a stroke.
GetPacketData Gets the packet data associated with one or more points in a IInkStrokeDisp object.
GetPacketDescriptionPropertyMetrics Returns the metrics for a given packet description type.
GetPacketValuesByProperty Returns the data for a known packet property from one or more packets in the IInkStrokeDisp object.
GetPoints Gets the points that make up a stroke.
GetRectangleIntersections Finds the points where a stroke intersects a given rectangle.
HitTest Determines whether a stroke is either completely inside or intersected by a given circle.
Move Applies a translation to the ink of the stroke.
NearestPoint Finds the location on the stroke nearest to a known point and returns the distance that point is from the stroke. Everything is in ink space coordinates.
Rotate Rotates the ink using an angle in degrees around a center point of the rotation.
ScaleToRectangle Scales the stroke to fit in the specified rectangle.
ScaleTransform Scales the ink using X and Y factors.
SetPacketValuesByProperty Sets the packet values for a particular property.
SetPoints Sets the points of the stroke using an array of X, Y values.
Shear Shears the ink in the stroke by the specified horizontal and vertical factors.
Split Splits the stroke at the specified location on the stroke.
Transform Applies a linear transformation to a stroke, which can represent scaling, rotation, translation, and combinations of transformations.
Property Description
BezierCusps Gets an array that contains the indices of the cusps of the Bezier approximation of the stroke.
BezierPoints Gets the array of control points that represent the Bezier approximation of the stroke.
Deleted Gets a value that indicates whether the IInkStrokeDisp object has been deleted from its parent InkDisp object.
DrawingAttributes Gets or sets the drawing attributes to apply to ink as it is drawn.
ExtendedProperties Gets the collection of application-defined data.
Id Gets the identifier of the IInkStrokeDisp object.
Ink Returns the parent InkDisp object for this stroke.
PacketCount Gets the number of packets received for a stroke.
PacketDescription Gets an array of globally unique identifiers (GUIDs) that describes the types of packet data stored in the Stroke object.
PacketSize Gets the size, in bytes, of a packet.
PolylineCusps Gets an array that contains the indices of the cusps of the stroke.
SelfIntersections Gets the self-intersections of the stroke.

COM Implementation

This object implements the IInkStroke COM interface.