Share via


IXRBezierSegment (Compact 2013)

3/28/2014

This class represents a cubic Bézier curve drawn between two points.

Syntax

class IXRBezierSegment : public IXRPathSegment

Inheritance Hierarchy

IXRDependencyObject

  IXRPathSegment

    IXRBezierSegment

Methods

In addition to the methods inherited from IXRPathSegment, this class contains the following methods.

Name

Description

IXRBezierSegment::GetPoint1

Retrieves the first control point of the curve.

IXRBezierSegment::GetPoint2

Retrieves the second control point of the curve.

IXRBezierSegment::GetPoint3

Retrieves the endpoint of the curve.

IXRBezierSegment::SetPoint1

Sets the first control point of the curve.

IXRBezierSegment::SetPoint2

Sets the second control point of the curve.

IXRBezierSegment::SetPoint3

Sets the endpoint of the curve.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

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.

When you create a class instance, use an IXRBezierSegmentPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define an IXRBezierSegment object in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the BezierSegment Class on MSDN.

.NET Framework Equivalent

System.Windows.Media.BezierSegment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Visual Appearance