Benny Ae
Benny Ae

Reputation: 2016

C# WPF Use points to make a stroke in the ink canvas

I want to use a group of points to make a stroke in the ink canvas. How to convert StylusPointCollection or points into StrokeCollection?

Upvotes: 3

Views: 1454

Answers (1)

Dante May Code
Dante May Code

Reputation: 11247

Did you actually mean Stroke?

You can simply use the constructor of Stroke to convert from StylusPointCollection.

public Stroke (
    StylusPointCollection stylusPoints
)

Upvotes: 2

Related Questions