Interface IGeometryContext
Describes a geometry using drawing commands.
public interface IGeometryContext : IDisposable
- Inherited Members
Methods
ArcTo(Point, Size, double, bool, SweepDirection)
Draws an arc to the specified point.
void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection)
Parameters
point
PointThe destination point.
size
SizeThe radii of an oval whose perimeter is used to draw the angle.
rotationAngle
doubleThe rotation angle (in radians) of the oval that specifies the curve.
isLargeArc
booltrue to draw the arc greater than 180 degrees; otherwise, false.
sweepDirection
SweepDirectionA value that indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.
BeginFigure(Point, bool)
Begins a new figure.
void BeginFigure(Point startPoint, bool isFilled = true)
Parameters
CubicBezierTo(Point, Point, Point)
Draws a Bezier curve to the specified point.
void CubicBezierTo(Point controlPoint1, Point controlPoint2, Point endPoint)
Parameters
controlPoint1
PointThe first control point used to specify the shape of the curve.
controlPoint2
PointThe second control point used to specify the shape of the curve.
endPoint
PointThe destination point for the end of the curve.
EndFigure(bool)
Ends the figure started by BeginFigure(Point, bool).
void EndFigure(bool isClosed)
Parameters
isClosed
boolWhether the figure is closed.
LineTo(Point)
Draws a line to the specified point.
void LineTo(Point endPoint)
Parameters
endPoint
PointThe destination point.
QuadraticBezierTo(Point, Point)
Draws a quadratic Bezier curve to the specified point
void QuadraticBezierTo(Point controlPoint, Point endPoint)
Parameters
SetFillRule(FillRule)
Sets path's winding rule (default is EvenOdd). You should call this method before any calls to BeginFigure.
void SetFillRule(FillRule fillRule)
Parameters
fillRule
FillRule