Stroke.GetFlattenedBezierPoints - метод (Int32)
Обновлен: Ноябрь 2007
Returns the array of points that are used to approximate the Bezier representation of a Stroke object with the specified fitting error.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Function GetFlattenedBezierPoints ( _
fittingError As Integer _
) As Point()
'Применение
Dim instance As Stroke
Dim fittingError As Integer
Dim returnValue As Point()
returnValue = instance.GetFlattenedBezierPoints(fittingError)
public Point[] GetFlattenedBezierPoints(
int fittingError
)
public:
array<Point>^ GetFlattenedBezierPoints(
int fittingError
)
public Point[] GetFlattenedBezierPoints(
int fittingError
)
public function GetFlattenedBezierPoints(
fittingError : int
) : Point[]
Параметры
- fittingError
Тип: System.Int32
The maximum distance (accuracy), in HIMETRIC units, between the Bezier control points and the points of the Stroke object. This is also known as the curve fitting error level.
Возвращаемое значение
Тип: 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.
Заметки
Set the fittingError parameter to a value between 0 and 500 HIMETRIC units, if possible. If the value is greater than 500, a stroke may appear distorted or coarse when drawn. Strokes appear smoothest when the fitting error level is set to 0, but the drawing performance is slowest at this level.
Примеры
In this example, the flattened bezier points (with a fittingError of 500 HIMETRIC units) 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(500)
Dim newStroke As Stroke = S.Ink.CreateStroke(bPts)
newStroke.Move(200, 200)
Next
foreach (Stroke S in mInkOverlay.Selection)
{
Point[] bPts = S.GetFlattenedBezierPoints(500);
Stroke newStroke = S.Ink.CreateStroke(bPts);
newStroke.Move(200, 200);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
GetFlattenedBezierPoints - перегрузка