C# Class Perspex.Media.StreamGeometryContext

Describes a geometry using drawing commands.
This class is used to define the geometry of a StreamGeometry. An instance of StreamGeometryContext is obtained by calling StreamGeometry.Open.
Inheritance: IDisposable
Mostra file Open project: kekekeks/Perspex Class Usage Examples

Public Methods

Method Description
ArcTo ( Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection ) : void

Draws an arc to the specified point.

BeginFigure ( Point startPoint, bool isFilled ) : void

Begins a new figure.

BezierTo ( Point point1, Point point2, Point point3 ) : void

Draws a Bezier curve to the specified point.

Dispose ( ) : void

Finishes the drawing session.

EndFigure ( bool isClosed ) : void

Ends the figure started by BeginFigure(Point, bool).

LineTo ( Point point ) : void

Draws a line to the specified point.

QuadTo ( Point control, Point endPoint ) : void

Draws a quadratic Bezier curve to the specified point

StreamGeometryContext ( IStreamGeometryContextImpl impl ) : System

Initializes a new instance of the StreamGeometryContext class.

Method Details

ArcTo() public method

Draws an arc to the specified point.
public ArcTo ( Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection ) : void
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 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. ///
return void

BeginFigure() public method

Begins a new figure.
public BeginFigure ( Point startPoint, bool isFilled ) : void
startPoint Point The starting point for the figure.
isFilled bool Whether the figure is filled.
return void

BezierTo() public method

Draws a Bezier curve to the specified point.
public BezierTo ( Point point1, Point point2, Point point3 ) : void
point1 Point The first control point used to specify the shape of the curve.
point2 Point The second control point used to specify the shape of the curve.
point3 Point The destination point for the end of the curve.
return void

Dispose() public method

Finishes the drawing session.
public Dispose ( ) : void
return void

EndFigure() public method

Ends the figure started by BeginFigure(Point, bool).
public EndFigure ( bool isClosed ) : void
isClosed bool Whether the figure is closed.
return void

LineTo() public method

Draws a line to the specified point.
public LineTo ( Point point ) : void
point Point The destination point.
return void

QuadTo() public method

Draws a quadratic Bezier curve to the specified point
public QuadTo ( Point control, Point endPoint ) : void
control Point The control point used to specify the shape of the curve.
endPoint Point The destination point for the end of the curve.
return void

StreamGeometryContext() public method

Initializes a new instance of the StreamGeometryContext class.
public StreamGeometryContext ( IStreamGeometryContextImpl impl ) : System
impl IStreamGeometryContextImpl The platform-specific implementation.
return System