C# Class SVGGraphicsStroke, UnitySVG

Inheritance: ISVGPathDraw
Mostrar archivo Open project: MrJoy/UnitySVG Class Usage Examples

Public Methods

Method Description
ArcTo ( float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p ) : void
ArcTo ( float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p, float width ) : void
Circle ( Vector2 p, float r ) : void
Circle ( Vector2 p, float r, float width ) : void
CircleTo ( Vector2 p, float r ) : void
CircleTo ( Vector2 p, float r, float width ) : void
CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p, float width ) : void
DrawPath ( SVGGraphicsPath, graphicsPath ) : void
DrawPath ( SVGGraphicsPath, graphicsPath, float width ) : void
Ellipse ( Vector2 p, float rx, float ry, float angle ) : void
Ellipse ( Vector2 p, float rx, float ry, float angle, float width ) : void
EllipseTo ( Vector2 p, float r1, float r2, float angle ) : void
EllipseTo ( Vector2 p, float r1, float r2, float angle, float width ) : void
Line ( Vector2 p1, Vector2 p2 ) : void
Line ( Vector2 p1, Vector2 p2, float width ) : void
LineTo ( Vector2 p ) : void
LineTo ( Vector2 p, float width ) : void
MoveTo ( Vector2 p ) : void
Polygon ( Vector2 points ) : void
Polygon ( Vector2 points, float width ) : void
QuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
QuadraticCurveTo ( Vector2 p1, Vector2 p, float width ) : void
Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4 ) : void
Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float width ) : void
RoundedRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8, float r1, float r2, float angle ) : void
RoundedRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8, float r1, float r2, float angle, float width ) : void
SVGGraphicsStroke ( SVGGraphics, graphics ) : System

Private Methods

Method Description
SetPixel ( int x, int y ) : void
StrokeLineCapLeft ( Vector2 p1, Vector2 p2, float width ) : void
StrokeLineCapRight ( Vector2 p1, Vector2 p2, float width ) : void
StrokeLineJoin ( Vector2 p1, Vector2 p2, Vector2 p3, float width ) : void

Method Details

ArcTo() public method

public ArcTo ( float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p ) : void
r1 float
r2 float
angle float
largeArcFlag bool
sweepFlag bool
p Vector2
return void

ArcTo() public method

public ArcTo ( float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p, float width ) : void
r1 float
r2 float
angle float
largeArcFlag bool
sweepFlag bool
p Vector2
width float
return void

Circle() public method

public Circle ( Vector2 p, float r ) : void
p Vector2
r float
return void

Circle() public method

public Circle ( Vector2 p, float r, float width ) : void
p Vector2
r float
width float
return void

CircleTo() public method

public CircleTo ( Vector2 p, float r ) : void
p Vector2
r float
return void

CircleTo() public method

public CircleTo ( Vector2 p, float r, float width ) : void
p Vector2
r float
width float
return void

CubicCurveTo() public method

public CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
p1 Vector2
p2 Vector2
p Vector2
return void

CubicCurveTo() public method

public CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p, float width ) : void
p1 Vector2
p2 Vector2
p Vector2
width float
return void

DrawPath() public method

public DrawPath ( SVGGraphicsPath, graphicsPath ) : void
graphicsPath SVGGraphicsPath,
return void

DrawPath() public method

public DrawPath ( SVGGraphicsPath, graphicsPath, float width ) : void
graphicsPath SVGGraphicsPath,
width float
return void

Ellipse() public method

public Ellipse ( Vector2 p, float rx, float ry, float angle ) : void
p Vector2
rx float
ry float
angle float
return void

Ellipse() public method

public Ellipse ( Vector2 p, float rx, float ry, float angle, float width ) : void
p Vector2
rx float
ry float
angle float
width float
return void

EllipseTo() public method

public EllipseTo ( Vector2 p, float r1, float r2, float angle ) : void
p Vector2
r1 float
r2 float
angle float
return void

EllipseTo() public method

public EllipseTo ( Vector2 p, float r1, float r2, float angle, float width ) : void
p Vector2
r1 float
r2 float
angle float
width float
return void

Line() public method

public Line ( Vector2 p1, Vector2 p2 ) : void
p1 Vector2
p2 Vector2
return void

Line() public method

public Line ( Vector2 p1, Vector2 p2, float width ) : void
p1 Vector2
p2 Vector2
width float
return void

LineTo() public method

public LineTo ( Vector2 p ) : void
p Vector2
return void

LineTo() public method

public LineTo ( Vector2 p, float width ) : void
p Vector2
width float
return void

MoveTo() public method

public MoveTo ( Vector2 p ) : void
p Vector2
return void

Polygon() public method

public Polygon ( Vector2 points ) : void
points Vector2
return void

Polygon() public method

public Polygon ( Vector2 points, float width ) : void
points Vector2
width float
return void

QuadraticCurveTo() public method

public QuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
p1 Vector2
p Vector2
return void

QuadraticCurveTo() public method

public QuadraticCurveTo ( Vector2 p1, Vector2 p, float width ) : void
p1 Vector2
p Vector2
width float
return void

Rect() public method

public Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4 ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
return void

Rect() public method

public Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float width ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
width float
return void

RoundedRect() public method

public RoundedRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8, float r1, float r2, float angle ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
p5 Vector2
p6 Vector2
p7 Vector2
p8 Vector2
r1 float
r2 float
angle float
return void

RoundedRect() public method

public RoundedRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8, float r1, float r2, float angle, float width ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
p5 Vector2
p6 Vector2
p7 Vector2
p8 Vector2
r1 float
r2 float
angle float
width float
return void

SVGGraphicsStroke() public method

public SVGGraphicsStroke ( SVGGraphics, graphics ) : System
graphics SVGGraphics,
return System