C# Class SVGGraphicsFill, UnitySVG

Inheritance: ISVGPathDraw
Exibir arquivo 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
Circle ( Vector2 p, float r ) : void
Circle ( Vector2 p, float r, SVGColor, strokeColor ) : void
Circle ( Vector2 p, float r, SVGColor, fillColor, SVGColor, strokeColor ) : void
CircleTo ( Vector2 p, float r ) : void
CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
Ellipse ( Vector2 p, float rx, float ry, float angle ) : void
Ellipse ( Vector2 p, float rx, float ry, float angle, SVGColor, strokeColor ) : void
Ellipse ( Vector2 p, float rx, float ry, float angle, SVGColor, fillColor, SVGColor, strokeColor ) : void
EllipseTo ( Vector2 p, float rx, float ry, float angle ) : void
EndSubBuffer ( ) : void
EndSubBuffer ( SVGColor, strokePathColor ) : void
EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush ) : void
EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor ) : void
EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush ) : void
EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor ) : void
EndSubBuffer ( Vector2 points ) : void
Fill ( float x, float y ) : void
FillPath ( SVGColor, fillColor, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
FillPath ( SVGColor, fillColor, SVGGraphicsPath, graphicsPath ) : void
FillPath ( SVGGraphicsPath, graphicsPath ) : void
FillPath ( SVGGraphicsPath, graphicsPath, Vector2 points ) : void
FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGGraphicsPath, graphicsPath ) : void
FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGGraphicsPath, graphicsPath ) : void
LineTo ( Vector2 p ) : void
MoveTo ( Vector2 p ) : void
Polygon ( Vector2 points ) : void
Polygon ( Vector2 points, SVGColor, strokeColor ) : void
Polygon ( Vector2 points, SVGColor, fillColor, SVGColor, strokeColor ) : void
QuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4 ) : void
Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, SVGColor, strokeColor ) : void
Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, SVGColor, fillColor, SVGColor, strokeColor ) : void
ResetSubBuffer ( ) : 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, SVGColor, strokeColor ) : void
RoundedRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8, float r1, float r2, float angle, SVGColor, fillColor, SVGColor, strokeColor ) : void
SVGGraphicsFill ( SVGGraphics, _graphics ) : System
SetColor ( Color color ) : void

Private Methods

Method Description
ExpandBounds ( Vector2 point ) : void
ExpandBounds ( Vector2 point, float dx, float dy ) : void
Fill ( int x, int y ) : void
FillInZone ( ) : void
PreCircle ( Vector2 p, float r ) : void
PreEllipse ( Vector2 p, float rx, float ry, float angle ) : void
PreEndSubBuffer ( ) : void
PrePolygon ( Vector2 points ) : void
PreRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4 ) : void
PreRoundedRect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5, Vector2 p6, Vector2 p7, Vector2 p8, float r1, float r2, float angle ) : void
SetPixelForFlag ( int x, int y ) : void
isInZone ( int x, int y ) : bool

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

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, SVGColor, strokeColor ) : void
p Vector2
r float
strokeColor SVGColor,
return void

Circle() public method

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

CircleTo() public method

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

CubicCurveTo() public method

public CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
p1 Vector2
p2 Vector2
p Vector2
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, SVGColor, strokeColor ) : void
p Vector2
rx float
ry float
angle float
strokeColor SVGColor,
return void

Ellipse() public method

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

EllipseTo() public method

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

EndSubBuffer() public method

public EndSubBuffer ( ) : void
return void

EndSubBuffer() public method

public EndSubBuffer ( SVGColor, strokePathColor ) : void
strokePathColor SVGColor,
return void

EndSubBuffer() public method

public EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush ) : void
linearGradientBrush SVGLinearGradientBrush,
return void

EndSubBuffer() public method

public EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor ) : void
linearGradientBrush SVGLinearGradientBrush,
strokePathColor SVGColor,
return void

EndSubBuffer() public method

public EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush ) : void
radialGradientBrush SVGRadialGradientBrush,
return void

EndSubBuffer() public method

public EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor ) : void
radialGradientBrush SVGRadialGradientBrush,
strokePathColor SVGColor,
return void

EndSubBuffer() public method

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

Fill() public method

public Fill ( float x, float y ) : void
x float
y float
return void

FillPath() public method

public FillPath ( SVGColor, fillColor, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
return void

FillPath() public method

public FillPath ( SVGColor, fillColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
graphicsPath SVGGraphicsPath,
return void

FillPath() public method

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

FillPath() public method

public FillPath ( SVGGraphicsPath, graphicsPath, Vector2 points ) : void
graphicsPath SVGGraphicsPath,
points Vector2
return void

FillPath() public method

public FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
linearGradientBrush SVGLinearGradientBrush,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
return void

FillPath() public method

public FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGGraphicsPath, graphicsPath ) : void
linearGradientBrush SVGLinearGradientBrush,
graphicsPath SVGGraphicsPath,
return void

FillPath() public method

public FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
radialGradientBrush SVGRadialGradientBrush,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
return void

FillPath() public method

public FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGGraphicsPath, graphicsPath ) : void
radialGradientBrush SVGRadialGradientBrush,
graphicsPath SVGGraphicsPath,
return void

LineTo() public method

public LineTo ( Vector2 p ) : void
p Vector2
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, SVGColor, strokeColor ) : void
points Vector2
strokeColor SVGColor,
return void

Polygon() public method

public Polygon ( Vector2 points, SVGColor, fillColor, SVGColor, strokeColor ) : void
points Vector2
fillColor SVGColor,
strokeColor SVGColor,
return void

QuadraticCurveTo() public method

public QuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
p1 Vector2
p Vector2
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, SVGColor, strokeColor ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
strokeColor SVGColor,
return void

Rect() public method

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

ResetSubBuffer() public method

public ResetSubBuffer ( ) : void
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, SVGColor, strokeColor ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
p5 Vector2
p6 Vector2
p7 Vector2
p8 Vector2
r1 float
r2 float
angle float
strokeColor SVGColor,
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, SVGColor, fillColor, SVGColor, strokeColor ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
p5 Vector2
p6 Vector2
p7 Vector2
p8 Vector2
r1 float
r2 float
angle float
fillColor SVGColor,
strokeColor SVGColor,
return void

SVGGraphicsFill() public method

public SVGGraphicsFill ( SVGGraphics, _graphics ) : System
_graphics SVGGraphics,
return System

SetColor() public method

public SetColor ( Color color ) : void
color Color
return void