Compartir a través de


Ink.CreateStroke Method (Point[])

Creates a Stroke object from an array of Point input values.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Function CreateStroke ( _
    points As Point() _
) As Stroke
'Usage
Dim instance As Ink
Dim points As Point()
Dim returnValue As Stroke

returnValue = instance.CreateStroke(points)
public Stroke CreateStroke (
    Point[] points
)
public:
Stroke^ CreateStroke (
    array<Point>^ points
)
public Stroke CreateStroke (
    Point[] points
)
public function CreateStroke (
    points : Point[]
) : Stroke
Not applicable.

Parameters

  • points
    The array of points that make up the Stroke object.

Return Value

The newly created stroke. The newly created Stroke object.

Remarks

The minimum and maximum values of any point in the points array are the System.Int32.MinValue and System.Int32.MaxValue fields, respectively. However, these points define an ink space rectangle whose maximum width or height cannot exceed System.Int32.MaxValue. Because of this, the difference between the minimum and maximum x-coordinates or the minimum and maximum y-coordinates cannot exceed System.Int32.MaxValue.

Example

This C# example creates a Stroke object in an Ink object, theInk, from an array of Point objects, theStrokePoints.

Stroke theStroke = theInk.CreateStroke(theStrokePoints);

This Microsoft Visual Basic.NET example creates a Stroke object in an Ink object, theInk, from an array of Point objects, theStrokePoints.

Dim theStroke As Stroke = theInk.CreateStroke(theStrokePoints)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Ink Class
Ink Members
Microsoft.Ink Namespace
Stroke
TabletPropertyDescriptionCollection.InkToDeviceScaleX
TabletPropertyDescriptionCollection.InkToDeviceScaleY
Microsoft.Ink.Ink.CreateStrokes
Ink.DeleteStroke
Microsoft.Ink.Ink.DeleteStrokes