Uredi

Deli z drugimi prek


BezierSegment Constructors

Definition

Initializes a new instance of the BezierSegment class.

Overloads

BezierSegment()

Initializes a new instance of the BezierSegment class.

BezierSegment(Point, Point, Point, Boolean)

Initializes a new instance of the BezierSegment class with the specified control points, end point, and stroke option.

BezierSegment()

Initializes a new instance of the BezierSegment class.

public:
 BezierSegment();
public BezierSegment ();
Public Sub New ()

Remarks

A cubic Bezier curve is defined by four points: a start point, an end point (point3), and two control points (point1 and point2). This method does not enable you to specify the beginning point of the curve; the curve begins at the current point of the PathFigure object to which the BezierSegment is added.

The two control points of a cubic Bezier curve behave like magnets, attracting portions of what would otherwise be a straight line toward themselves and producing a curve. The first control point, point1, affects the beginning portion of the curve; the second control point, point2, affects the ending portion of the curve. Note that the curve doesn't necessarily pass through either of the control points; each control point moves its portion of the line toward itself, but not through itself.

Applies to

BezierSegment(Point, Point, Point, Boolean)

Initializes a new instance of the BezierSegment class with the specified control points, end point, and stroke option.

public:
 BezierSegment(System::Windows::Point point1, System::Windows::Point point2, System::Windows::Point point3, bool isStroked);
public BezierSegment (System.Windows.Point point1, System.Windows.Point point2, System.Windows.Point point3, bool isStroked);
new System.Windows.Media.BezierSegment : System.Windows.Point * System.Windows.Point * System.Windows.Point * bool -> System.Windows.Media.BezierSegment
Public Sub New (point1 As Point, point2 As Point, point3 As Point, isStroked As Boolean)

Parameters

point1
Point

The first control point, which determines the beginning portion of the curve.

point2
Point

The second control point, which determines the ending portion of the curve.

point3
Point

The point to which the curve is drawn.

isStroked
Boolean

true to stroke the curve when a Pen is used to render the segment; otherwise, false.

Remarks

A cubic Bezier curve is defined by four points: a start point, an end point (point3), and two control points (point1 and point2). This method does not enable you to specify the beginning point of the curve; the curve begins at the current point of the PathFigure object to which the BezierSegment is added.

The two control points of a cubic Bezier curve behave like magnets, attracting portions of what would otherwise be a straight line toward themselves and producing a curve. The first control point, point1, affects the beginning portion of the curve; the second control point, point2, affects the ending portion of the curve. Note that the curve doesn't necessarily pass through either of the control points; each control point moves its portion of the line toward itself, but not through itself.

Applies to