StreamGeometryContext::BezierTo Method (Point, Point, Point, Boolean, Boolean)
Draws a Bezier curve to the specified point.
Assembly: PresentationCore (in PresentationCore.dll)
public: virtual void BezierTo( Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin ) abstract
Parameters
- point1
-
Type:
System.Windows::Point
The first control point used to specify the shape of the curve.
- point2
-
Type:
System.Windows::Point
The second control point used to specify the shape of the curve.
- point3
-
Type:
System.Windows::Point
The destination point for the end of the curve.
- isStroked
-
Type:
System::Boolean
true to make the segment stroked when a Pen is used to render the segment; otherwise, false.
- isSmoothJoin
-
Type:
System::Boolean
true to treat the join between this segment and the previous segment as a corner when stroked with a Pen; otherwise, false.
| Exception | Condition |
|---|---|
| InvalidOperationException | An attempt was made to add a segment without starting a figure by calling the BeginFigure method. |
A cubic Bezier curve is defined by a start point, end point, and two control points. The first control point determines the curvature of the first half of the segment, and the second control point determines the curvature of the second half of the segment.
This method uses the end point of the previous segment as its starting point. If this is the first segment in a figure, it uses the point specified by the BeginFigure method as its start point.
A StreamGeometry cannot be serialized if it contains a Transform or any non-stroked or unfilled segments.
Available since 3.0