C# Класс SVGGraphicsFill, UnitySVG

Наследование: ISVGPathDraw
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ArcTo() публичный Метод

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
Результат void

Circle() публичный Метод

public Circle ( Vector2 p, float r ) : void
p Vector2
r float
Результат void

Circle() публичный Метод

public Circle ( Vector2 p, float r, SVGColor, strokeColor ) : void
p Vector2
r float
strokeColor SVGColor,
Результат void

Circle() публичный Метод

public Circle ( Vector2 p, float r, SVGColor, fillColor, SVGColor, strokeColor ) : void
p Vector2
r float
fillColor SVGColor,
strokeColor SVGColor,
Результат void

CircleTo() публичный Метод

public CircleTo ( Vector2 p, float r ) : void
p Vector2
r float
Результат void

CubicCurveTo() публичный Метод

public CubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
p1 Vector2
p2 Vector2
p Vector2
Результат void

Ellipse() публичный Метод

public Ellipse ( Vector2 p, float rx, float ry, float angle ) : void
p Vector2
rx float
ry float
angle float
Результат void

Ellipse() публичный Метод

public Ellipse ( Vector2 p, float rx, float ry, float angle, SVGColor, strokeColor ) : void
p Vector2
rx float
ry float
angle float
strokeColor SVGColor,
Результат void

Ellipse() публичный Метод

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,
Результат void

EllipseTo() публичный Метод

public EllipseTo ( Vector2 p, float rx, float ry, float angle ) : void
p Vector2
rx float
ry float
angle float
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( ) : void
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( SVGColor, strokePathColor ) : void
strokePathColor SVGColor,
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush ) : void
linearGradientBrush SVGLinearGradientBrush,
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor ) : void
linearGradientBrush SVGLinearGradientBrush,
strokePathColor SVGColor,
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush ) : void
radialGradientBrush SVGRadialGradientBrush,
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor ) : void
radialGradientBrush SVGRadialGradientBrush,
strokePathColor SVGColor,
Результат void

EndSubBuffer() публичный Метод

public EndSubBuffer ( Vector2 points ) : void
points Vector2
Результат void

Fill() публичный Метод

public Fill ( float x, float y ) : void
x float
y float
Результат void

FillPath() публичный Метод

public FillPath ( SVGColor, fillColor, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
Результат void

FillPath() публичный Метод

public FillPath ( SVGColor, fillColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
graphicsPath SVGGraphicsPath,
Результат void

FillPath() публичный Метод

public FillPath ( SVGGraphicsPath, graphicsPath ) : void
graphicsPath SVGGraphicsPath,
Результат void

FillPath() публичный Метод

public FillPath ( SVGGraphicsPath, graphicsPath, Vector2 points ) : void
graphicsPath SVGGraphicsPath,
points Vector2
Результат void

FillPath() публичный Метод

public FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
linearGradientBrush SVGLinearGradientBrush,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
Результат void

FillPath() публичный Метод

public FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGGraphicsPath, graphicsPath ) : void
linearGradientBrush SVGLinearGradientBrush,
graphicsPath SVGGraphicsPath,
Результат void

FillPath() публичный Метод

public FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
radialGradientBrush SVGRadialGradientBrush,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
Результат void

FillPath() публичный Метод

public FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGGraphicsPath, graphicsPath ) : void
radialGradientBrush SVGRadialGradientBrush,
graphicsPath SVGGraphicsPath,
Результат void

LineTo() публичный Метод

public LineTo ( Vector2 p ) : void
p Vector2
Результат void

MoveTo() публичный Метод

public MoveTo ( Vector2 p ) : void
p Vector2
Результат void

Polygon() публичный Метод

public Polygon ( Vector2 points ) : void
points Vector2
Результат void

Polygon() публичный Метод

public Polygon ( Vector2 points, SVGColor, strokeColor ) : void
points Vector2
strokeColor SVGColor,
Результат void

Polygon() публичный Метод

public Polygon ( Vector2 points, SVGColor, fillColor, SVGColor, strokeColor ) : void
points Vector2
fillColor SVGColor,
strokeColor SVGColor,
Результат void

QuadraticCurveTo() публичный Метод

public QuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
p1 Vector2
p Vector2
Результат void

Rect() публичный Метод

public Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4 ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
Результат void

Rect() публичный Метод

public Rect ( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, SVGColor, strokeColor ) : void
p1 Vector2
p2 Vector2
p3 Vector2
p4 Vector2
strokeColor SVGColor,
Результат void

Rect() публичный Метод

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,
Результат void

ResetSubBuffer() публичный Метод

public ResetSubBuffer ( ) : void
Результат void

RoundedRect() публичный Метод

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
Результат void

RoundedRect() публичный Метод

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,
Результат void

RoundedRect() публичный Метод

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,
Результат void

SVGGraphicsFill() публичный Метод

public SVGGraphicsFill ( SVGGraphics, _graphics ) : System
_graphics SVGGraphics,
Результат System

SetColor() публичный Метод

public SetColor ( Color color ) : void
color Color
Результат void