C# 클래스 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.
상속: IDisposable
파일 보기 프로젝트 열기: kekekeks/Perspex 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

ArcTo() 공개 메소드

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. ///
리턴 void

BeginFigure() 공개 메소드

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.
리턴 void

BezierTo() 공개 메소드

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.
리턴 void

Dispose() 공개 메소드

Finishes the drawing session.
public Dispose ( ) : void
리턴 void

EndFigure() 공개 메소드

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

LineTo() 공개 메소드

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

QuadTo() 공개 메소드

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.
리턴 void

StreamGeometryContext() 공개 메소드

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