StreamGeometryContext::QuadraticBezierTo Method (Point, Point, Boolean, Boolean)

 

Draws a quadratic Bezier curve.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual void QuadraticBezierTo(
	Point point1,
	Point point2,
	bool isStroked,
	bool isSmoothJoin
) abstract

Parameters

point1
Type: System.Windows::Point

The control point used to specify the shape of the curve.

point2
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.

Unlike a cubic Bezier curve, which uses two control points, a quadratic cubic Bezier curve uses a single control point.

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.

The following example shows how to draw a quadratic Bezier curve using the QuadraticBezierTo method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: