本文整理汇总了VB.NET中System.Windows.Ink.Stroke.Stroke构造函数的典型用法代码示例。如果您正苦于以下问题:VB.NET Stroke构造函数的具体用法?VB.NET Stroke怎么用?VB.NET Stroke使用的例子?那么, 这里精选的构造函数代码示例或许可以为您提供帮助。
在下文中一共展示了Stroke构造函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: points
Dim drawingAttributes1 As New DrawingAttributes()
drawingAttributes1.Color = Colors.Green
Dim stylusPoint1 As StylusPoint = New StylusPoint(100, 100)
Dim stylusPoint2 As StylusPoint = New StylusPoint(100, 200)
Dim stylusPoint3 As StylusPoint = New StylusPoint(200, 200)
Dim stylusPoint4 As StylusPoint = New StylusPoint(200, 100)
Dim stylusPoint5 As StylusPoint = New StylusPoint(100, 100)
Dim points() As StylusPoint = {stylusPoint1, stylusPoint2, _
stylusPoint3, stylusPoint4, stylusPoint1}
Dim pointCollection As New StylusPointCollection(points)
Dim NewStroke As Stroke = New Stroke(pointCollection, drawingAttributes1)
myInkPresenter.Strokes.Add(NewStroke)