StreamGeometryContext Class
Describes a geometry using drawing commands.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public class StreamGeometryContext : IGeometryContext,
IDisposable, IGeometryContext2
Public Class StreamGeometryContext
Implements IGeometryContext, IDisposable, IGeometryContext2
type StreamGeometryContext =
class
interface IGeometryContext
interface IDisposable
interface IGeometryContext2
end
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) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetType() | Gets 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. |
MemberwiseClone() | Creates 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. |
ToString() | Returns a string that represents the current object. (Inherited from Object) |