Stroke.GetFlattenedBezierPoints - метод
Обновлен: Ноябрь 2007
Returns the array of points that are used to approximate the Bezier representation of a Stroke object with a fitting error of 0.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Function GetFlattenedBezierPoints As Point()
'Применение
Dim instance As Stroke
Dim returnValue As Point()
returnValue = instance.GetFlattenedBezierPoints()
public Point[] GetFlattenedBezierPoints()
public:
array<Point>^ GetFlattenedBezierPoints()
public Point[] GetFlattenedBezierPoints()
public function GetFlattenedBezierPoints() : Point[]
Возвращаемое значение
Тип: array<System.Drawing.Point[]
Returns a Point array that indicates the points that were used to draw the Bezier curve representation of the Stroke object.
Заметки
The fitting error is set to 0. Strokes appear smoothest when using this default overload, but the drawing performance is slowest. To set the fitting error manually, use the GetFlattenedBezierPoints(Int32) overload of this method.
Примеры
In this example, the flattened bezier points of each selected Stroke object of an InkOverlay are used to create a new Stroke object. The new Stroke object is then moved by 200 HIMETRIC units in both the X and Y direction.
For Each S As Stroke In mInkOverlay.Selection
Dim bPts() As Point = S.GetFlattenedBezierPoints()
Dim newStroke As Stroke = S.Ink.CreateStroke(bPts)
newStroke.Move(200, 200)
Next
foreach (Stroke S in mInkOverlay.Selection)
{
Point[] bPts = S.GetFlattenedBezierPoints();
Stroke newStroke = S.Ink.CreateStroke(bPts);
newStroke.Move(200, 200);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
GetFlattenedBezierPoints - перегрузка