Summary
Describes a geometry using drawing commands.
- Namespace
- Avalonia
.Media - Interfaces
-
- IGeometryContext
- IDisposable
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IGeometryContext"]
click Interface0 "/api/Avalonia.Platform/IGeometryContext"
Type-.->Interface1["IDisposable"]
Type["StreamGeometryContext"]
class Type type-node
Syntax
public class StreamGeometryContext : IGeometryContext, IDisposable
Remarks
This class is used to define the geometry of a
StreamGeometry
. An instance
of StreamGeometryContext
is obtained by calling
Open()
.
Constructors
Name | Summary |
---|---|
Stream |
Initializes a new instance of the StreamGeometryContext class.
|
Methods
Name | Value | Summary |
---|---|---|
ArcTo |
void |
Draws an arc to the specified point.
|
BeginFigure |
void |
Begins a new figure.
|
CubicBezierTo |
void |
Draws a Bezier curve to the specified point.
|
Dispose |
void |
Finishes the drawing session.
|
EndFigure |
void |
Ends the figure started by
BeginFigure(Point, bool) .
|
LineTo |
void |
Draws a line to the specified point.
|
QuadraticBezierTo |
void |
Draws a quadratic Bezier curve to the specified point
|
SetFillRule |
void |
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.
|