Table of Contents

Interface IGeometryContext2

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll
public interface IGeometryContext2 : IGeometryContext, IDisposable
Inherited Members

Methods

ArcTo(Point, Size, double, bool, SweepDirection, bool)

Draws an arc to the specified point.

void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked)

Parameters

point Point

The destination point.

size Size

The radii of an oval whose perimeter is used to draw the angle.

rotationAngle double

The rotation angle (in radians) of the oval that specifies the curve.

isLargeArc bool

true to draw the arc greater than 180 degrees; otherwise, false.

sweepDirection SweepDirection

A value that indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.

isStroked bool

Whether the segment is stroked

CubicBezierTo(Point, Point, Point, bool)

Draws a Bezier curve to the specified point.

void CubicBezierTo(Point controlPoint1, Point controlPoint2, Point endPoint, bool isStroked)

Parameters

controlPoint1 Point

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

controlPoint2 Point

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

endPoint Point

The destination point for the end of the curve.

isStroked bool

Whether the segment is stroked

LineTo(Point, bool)

Draws a line to the specified point.

void LineTo(Point point, bool isStroked)

Parameters

point Point

The destination point.

isStroked bool

Whether the segment is stroked

QuadraticBezierTo(Point, Point, bool)

Draws a quadratic Bezier curve to the specified point

void QuadraticBezierTo(Point controlPoint, Point endPoint, bool isStroked)

Parameters

controlPoint Point
endPoint Point

DestinationPoint

isStroked bool

Whether the segment is stroked