InkStrokeBuilder.CreateStrokeFromInkPoints Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateStrokeFromInkPoints(IIterable<InkPoint>, Matrix3x2) |
Creates a basic ink stroke from collection of InkPoint objects. Note Use CreateStrokeFromInkPoints and SetDefaultDrawingAttributes to programmatically build strokes for an InkPresenter. |
CreateStrokeFromInkPoints(IIterable<InkPoint>, Matrix3x2, IReference<DateTime>, IReference<TimeSpan>) |
Creates a rich ink stroke from collection of InkPoint objects. Note Use CreateStrokeFromInkPoints and SetDefaultDrawingAttributes to programmatically build strokes for an InkPresenter. |
CreateStrokeFromInkPoints(IIterable<InkPoint>, Matrix3x2)
Creates a basic ink stroke from collection of InkPoint objects.
Note
Use CreateStrokeFromInkPoints and SetDefaultDrawingAttributes to programmatically build strokes for an InkPresenter.
public:
virtual InkStroke ^ CreateStrokeFromInkPoints(IIterable<InkPoint ^> ^ inkPoints, float3x2 transform) = CreateStrokeFromInkPoints;
InkStroke CreateStrokeFromInkPoints(IIterable<InkPoint> const& inkPoints, float3x2 const& transform);
public InkStroke CreateStrokeFromInkPoints(IEnumerable<InkPoint> inkPoints, Matrix3x2 transform);
function createStrokeFromInkPoints(inkPoints, transform)
Public Function CreateStrokeFromInkPoints (inkPoints As IEnumerable(Of InkPoint), transform As Matrix3x2) As InkStroke
Parameters
- inkPoints
The collection of InkPoint objects.
Returns
The ink stroke, including the Bézier curve parameters used for final rendering of the stroke.
See also
- CreateStrokeFromInkPoints(IIterable<InkPoint>, Matrix3x2, IReference<DateTime>, IReference<TimeSpan>)
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample
Applies to
CreateStrokeFromInkPoints(IIterable<InkPoint>, Matrix3x2, IReference<DateTime>, IReference<TimeSpan>)
Creates a rich ink stroke from collection of InkPoint objects.
Note
Use CreateStrokeFromInkPoints and SetDefaultDrawingAttributes to programmatically build strokes for an InkPresenter.
public:
virtual InkStroke ^ CreateStrokeFromInkPoints(IIterable<InkPoint ^> ^ inkPoints, float3x2 transform, IReference<DateTime> ^ strokeStartedTime, IReference<TimeSpan> ^ strokeDuration) = CreateStrokeFromInkPoints;
InkStroke CreateStrokeFromInkPoints(IIterable<InkPoint> const& inkPoints, float3x2 const& transform, IReference<DateTime> const& strokeStartedTime, IReference<TimeSpan> const& strokeDuration);
public InkStroke CreateStrokeFromInkPoints(IEnumerable<InkPoint> inkPoints, Matrix3x2 transform, System.Nullable<System.DateTimeOffset> strokeStartedTime, System.Nullable<System.TimeSpan> strokeDuration);
function createStrokeFromInkPoints(inkPoints, transform, strokeStartedTime, strokeDuration)
Public Function CreateStrokeFromInkPoints (inkPoints As IEnumerable(Of InkPoint), transform As Matrix3x2, strokeStartedTime As Nullable(Of DateTimeOffset), strokeDuration As Nullable(Of TimeSpan)) As InkStroke
Parameters
- inkPoints
The collection of InkPoint objects.
A 2-D transformation matrix. Typically, this is just the identity matrix.
- strokeStartedTime
The date and time when the InkStroke was started.
- strokeDuration
Gets or sets the time taken by the user to draw a single ink stroke.
Returns
The ink stroke, including the Bézier curve parameters used for final rendering of the stroke.
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
See also
- CreateStrokeFromInkPoints(IIterable<InkPoint>, Matrix3x2)
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample