Share via


PathF.Rotate(Single, PointF) Method

Definition

Creates a new PathF representing this path rotated by the specified angle about a pivot point.

public:
 Microsoft::Maui::Graphics::PathF ^ Rotate(float angleAsDegrees, Microsoft::Maui::Graphics::PointF pivot);
public Microsoft.Maui.Graphics.PathF Rotate(float angleAsDegrees, Microsoft.Maui.Graphics.PointF pivot);
member this.Rotate : single * Microsoft.Maui.Graphics.PointF -> Microsoft.Maui.Graphics.PathF
Public Function Rotate (angleAsDegrees As Single, pivot As PointF) As PathF

Parameters

angleAsDegrees
Single

The rotation angle in degrees. Positive angles rotate counter-clockwise; 0° keeps the path unchanged.

pivot
PointF

The pivot point about which all points (and ellipse bounding rectangles for arc segments) are rotated.

Returns

A new PathF containing the rotated geometry. The original path is not modified.

Remarks

Rotation uses the same degree-based, counter-clockwise positive convention as arc angles (see AddArc(PointF, PointF, Single, Single, Boolean)). Arc segments preserve their original start and end angle values; only their bounding rectangle corner points are rotated.

Applies to