C# Class SVGGraphicsFill, UnitySVG

Inheritance: ISVGPathDraw
Afficher le fichier Open project: MrJoy/UnitySVG Class Usage Examples

Méthodes publiques

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

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

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

Circle() public méthode

public Circle ( Vector2 p, float r ) : void
p Vector2
r float
Résultat void

Circle() public méthode

public Circle ( Vector2 p, float r, SVGColor, strokeColor ) : void
p Vector2
r float
strokeColor SVGColor,
Résultat void

Circle() public méthode

public Circle ( Vector2 p, float r, SVGColor, fillColor, SVGColor, strokeColor ) : void
p Vector2
r float
fillColor SVGColor,
strokeColor SVGColor,
Résultat void

CircleTo() public méthode

public CircleTo ( Vector2 p, float r ) : void
p Vector2
r float
Résultat void

CubicCurveTo() public méthode

public CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
p1 Vector2
p2 Vector2
p Vector2
Résultat void

Ellipse() public méthode

public Ellipse ( Vector2 p, float rx, float ry, float angle ) : void
p Vector2
rx float
ry float
angle float
Résultat void

Ellipse() public méthode

public Ellipse ( Vector2 p, float rx, float ry, float angle, SVGColor, strokeColor ) : void
p Vector2
rx float
ry float
angle float
strokeColor SVGColor,
Résultat void

Ellipse() public méthode

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

EllipseTo() public méthode

public EllipseTo ( Vector2 p, float rx, float ry, float angle ) : void
p Vector2
rx float
ry float
angle float
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( ) : void
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( SVGColor, strokePathColor ) : void
strokePathColor SVGColor,
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush ) : void
linearGradientBrush SVGLinearGradientBrush,
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor ) : void
linearGradientBrush SVGLinearGradientBrush,
strokePathColor SVGColor,
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush ) : void
radialGradientBrush SVGRadialGradientBrush,
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor ) : void
radialGradientBrush SVGRadialGradientBrush,
strokePathColor SVGColor,
Résultat void

EndSubBuffer() public méthode

public EndSubBuffer ( Vector2 points ) : void
points Vector2
Résultat void

Fill() public méthode

public Fill ( float x, float y ) : void
x float
y float
Résultat void

FillPath() public méthode

public FillPath ( SVGColor, fillColor, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
Résultat void

FillPath() public méthode

public FillPath ( SVGColor, fillColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
graphicsPath SVGGraphicsPath,
Résultat void

FillPath() public méthode

public FillPath ( SVGGraphicsPath, graphicsPath ) : void
graphicsPath SVGGraphicsPath,
Résultat void

FillPath() public méthode

public FillPath ( SVGGraphicsPath, graphicsPath, Vector2 points ) : void
graphicsPath SVGGraphicsPath,
points Vector2
Résultat void

FillPath() public méthode

public FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
linearGradientBrush SVGLinearGradientBrush,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
Résultat void

FillPath() public méthode

public FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGGraphicsPath, graphicsPath ) : void
linearGradientBrush SVGLinearGradientBrush,
graphicsPath SVGGraphicsPath,
Résultat void

FillPath() public méthode

public FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
radialGradientBrush SVGRadialGradientBrush,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
Résultat void

FillPath() public méthode

public FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGGraphicsPath, graphicsPath ) : void
radialGradientBrush SVGRadialGradientBrush,
graphicsPath SVGGraphicsPath,
Résultat void

LineTo() public méthode

public LineTo ( Vector2 p ) : void
p Vector2
Résultat void

MoveTo() public méthode

public MoveTo ( Vector2 p ) : void
p Vector2
Résultat void

Polygon() public méthode

public Polygon ( Vector2 points ) : void
points Vector2
Résultat void

Polygon() public méthode

public Polygon ( Vector2 points, SVGColor, strokeColor ) : void
points Vector2
strokeColor SVGColor,
Résultat void

Polygon() public méthode

public Polygon ( Vector2 points, SVGColor, fillColor, SVGColor, strokeColor ) : void
points Vector2
fillColor SVGColor,
strokeColor SVGColor,
Résultat void

QuadraticCurveTo() public méthode

public QuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
p1 Vector2
p Vector2
Résultat void

Rect() public méthode

public Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4 ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
Résultat void

Rect() public méthode

public Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, SVGColor, strokeColor ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
strokeColor SVGColor,
Résultat void

Rect() public méthode

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

ResetSubBuffer() public méthode

public ResetSubBuffer ( ) : void
Résultat void

RoundedRect() public méthode

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

RoundedRect() public méthode

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

RoundedRect() public méthode

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

SVGGraphicsFill() public méthode

public SVGGraphicsFill ( SVGGraphics, _graphics ) : System
_graphics SVGGraphics,
Résultat System

SetColor() public méthode

public SetColor ( Color color ) : void
color Color
Résultat void