StreamGeometryContext Class

Describes a geometry using drawing commands.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class StreamGeometryContext : IGeometryContext, 
	IDisposable, IGeometryContext2
Inheritance
Object    StreamGeometryContext
Implements
IGeometryContext, IGeometryContext2, IDisposable

Remarks

This class is used to define the geometry of a StreamGeometry. An instance of StreamGeometryContext is obtained by calling Open.

Methods

ArcTo(Point, Size, Double, Boolean, SweepDirection) Draws an arc to the specified point.
ArcTo(Point, Size, Double, Boolean, SweepDirection, Boolean) 
BeginFigure(Point, Boolean) Begins a new figure.
CubicBezierTo(Point, Point, Point) Draws a Bezier curve to the specified point.
CubicBezierTo(Point, Point, Point, Boolean) 
Dispose Finishes the drawing session.
EndFigure(Boolean) Ends the figure started by BeginFigure(Point, Boolean).
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
LineTo(Point) Draws a line to the specified point.
LineTo(Point, Boolean) Draws a line to the specified point.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
PreciseArcTo(Point, Size, Double, Boolean, SweepDirection) Draws an arc to the specified point using polylines, quadratic or cubic Bezier curves Significantly more precise when drawing elliptic arcs with extreme width:height ratios.
QuadraticBezierTo(Point, Point) Draws a quadratic Bezier curve to the specified point
QuadraticBezierTo(Point, Point, Boolean) 
SetFillRule(FillRule) Sets path's winding rule (default is EvenOdd). You should call this method before any calls to BeginFigure. If you wonder why, ask Direct2D guys about their design decisions.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also