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
Afficher le fichier Open project: kekekeks/Perspex Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat void

BeginFigure() public méthode

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.
Résultat void

BezierTo() public méthode

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.
Résultat void

Dispose() public méthode

Finishes the drawing session.
public Dispose ( ) : void
Résultat void

EndFigure() public méthode

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

LineTo() public méthode

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

QuadTo() public méthode

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.
Résultat void

StreamGeometryContext() public méthode

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