IXRBezierSegment (Windows Embedded CE 6.0)
1/6/2010
This class represents a cubic Bézier curve drawn between two points.
Syntax
class IXRBezierSegment : public IXRPathSegment
Methods
In addition to the methods inherited from IXRPathSegment, this class contains the following methods.
Name | Description |
---|---|
Retrieves the first control point of the curve. |
|
Retrieves the second control point of the curve. |
|
Retrieves the endpoint of the curve. |
|
Sets the first control point of the curve. |
|
Sets the second control point of the curve. |
|
Sets the endpoint of the curve. |
Remarks
Use an IXRPathFigure object to store IXRBezierSegment objects and other segments.
Four points define a cubic Bézier curve: a starting point, an endpoint (Point3), and two control points (Point1 and Point2). The IXRBezierSegment class does not contain a property for the starting point of the curve. The starting point of the curve is the current point of the IXRPathFigure that contains the IXRBezierSegment.
The two control points of a cubic Bézier curve attract parts of a line between the starting point and the endpoint and produce a curve. The curve does not necessarily pass through either of the control points.
To specify a Bézier segment with more control points, see IXRPolyBezierSegment.
You can also define an IXRBezierSegment object in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.
Inheritance Hierarchy
IXRBezierSegment
.NET Framework Equivalent
System.Windows.Media.BezierSegment
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |