C# Class SkiaSharp.SKPath

Inheritance: SKObject
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
AddArc ( SKRect oval, float startAngle, float sweepAngle ) : void
AddCircle ( float x, float y, float radius, SKPathDirection dir = SKPathDirection.Clockwise ) : void
AddOval ( SKRect rect, SKPathDirection direction = SKPathDirection.Clockwise ) : void
AddPath ( SKPath other, AddMode mode = AddMode.Append ) : void
AddPath ( SKPath other, SKMatrix &matrix, AddMode mode = AddMode.Append ) : void
AddPath ( SKPath other, float dx, float dy, AddMode mode = AddMode.Append ) : void
AddPathReverse ( SKPath other ) : void
AddRect ( SKRect rect, SKPathDirection direction = SKPathDirection.Clockwise ) : void
AddRect ( SKRect rect, SKPathDirection direction, uint startIndex ) : void
AddRoundedRect ( SKRect rect, float rx, float ry, SKPathDirection dir = SKPathDirection.Clockwise ) : void
ArcTo ( SKPoint point1, SKPoint point2, float radius ) : void
ArcTo ( SKPoint r, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, SKPoint xy ) : void
ArcTo ( SKRect oval, float startAngle, float sweepAngle, bool forceMoveTo ) : void
ArcTo ( float rx, float ry, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, float x, float y ) : void
ArcTo ( float x1, float y1, float x2, float y2, float radius ) : void
Close ( ) : void
ConicTo ( SKPoint point0, SKPoint point1, float w ) : void
ConicTo ( float x0, float y0, float x1, float y1, float w ) : void
Contains ( float x, float y ) : bool
ConvertConicToQuads ( SKPoint p0, SKPoint p1, SKPoint p2, float w, int pow2 ) : SKPoint[]
ConvertConicToQuads ( SKPoint p0, SKPoint p1, SKPoint p2, float w, SKPoint &pts, int pow2 ) : int
CreateIterator ( bool forceClose ) : Iterator
CreateRawIterator ( ) : RawIterator
CubicTo ( SKPoint point0, SKPoint point1, SKPoint point2 ) : void
CubicTo ( float x0, float y0, float x1, float y1, float x2, float y2 ) : void
GetBounds ( SKRect &rect ) : bool
GetPoint ( int index ) : SKPoint
GetPoints ( int max ) : SKPoint[]
GetPoints ( SKPoint points, int max ) : int
GetTightBounds ( SKRect &result ) : bool
LineTo ( SKPoint point ) : void
LineTo ( float x, float y ) : void
MoveTo ( SKPoint point ) : void
MoveTo ( float x, float y ) : void
Offset ( SKPoint offset ) : void
Offset ( float dx, float dy ) : void
Op ( SKPath other, SKPathOp op ) : SKPath
Op ( SKPath other, SKPathOp op, SKPath result ) : bool
ParseSvgPathData ( string svgPath ) : SKPath
QuadTo ( SKPoint point0, SKPoint point1 ) : void
QuadTo ( float x0, float y0, float x1, float y1 ) : void
RArcTo ( SKPoint r, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, SKPoint xy ) : void
RArcTo ( float rx, float ry, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, float x, float y ) : void
RConicTo ( SKPoint point0, SKPoint point1, float w ) : void
RConicTo ( float dx0, float dy0, float dx1, float dy1, float w ) : void
RCubicTo ( SKPoint point0, SKPoint point1, SKPoint point2 ) : void
RCubicTo ( float dx0, float dy0, float dx1, float dy1, float dx2, float dy2 ) : void
RLineTo ( SKPoint point ) : void
RLineTo ( float dx, float dy ) : void
RMoveTo ( SKPoint point ) : void
RMoveTo ( float dx, float dy ) : void
RQuadTo ( SKPoint point0, SKPoint point1 ) : void
RQuadTo ( float dx0, float dy0, float dx1, float dy1 ) : void
Reset ( ) : void
Rewind ( ) : void
SKPath ( ) : System
SKPath ( SKPath path ) : System
Simplify ( ) : SKPath
Simplify ( SKPath result ) : bool
ToSvgPathData ( ) : string
Transform ( SKMatrix matrix ) : void
this ( int index ) : SKPoint

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
SKPath ( IntPtr handle, bool owns ) : System

Method Details

AddArc() public method

public AddArc ( SKRect oval, float startAngle, float sweepAngle ) : void
oval SKRect
startAngle float
sweepAngle float
return void

AddCircle() public method

public AddCircle ( float x, float y, float radius, SKPathDirection dir = SKPathDirection.Clockwise ) : void
x float
y float
radius float
dir SKPathDirection
return void

AddOval() public method

public AddOval ( SKRect rect, SKPathDirection direction = SKPathDirection.Clockwise ) : void
rect SKRect
direction SKPathDirection
return void

AddPath() public method

public AddPath ( SKPath other, AddMode mode = AddMode.Append ) : void
other SKPath
mode AddMode
return void

AddPath() public method

public AddPath ( SKPath other, SKMatrix &matrix, AddMode mode = AddMode.Append ) : void
other SKPath
matrix SKMatrix
mode AddMode
return void

AddPath() public method

public AddPath ( SKPath other, float dx, float dy, AddMode mode = AddMode.Append ) : void
other SKPath
dx float
dy float
mode AddMode
return void

AddPathReverse() public method

public AddPathReverse ( SKPath other ) : void
other SKPath
return void

AddRect() public method

public AddRect ( SKRect rect, SKPathDirection direction = SKPathDirection.Clockwise ) : void
rect SKRect
direction SKPathDirection
return void

AddRect() public method

public AddRect ( SKRect rect, SKPathDirection direction, uint startIndex ) : void
rect SKRect
direction SKPathDirection
startIndex uint
return void

AddRoundedRect() public method

public AddRoundedRect ( SKRect rect, float rx, float ry, SKPathDirection dir = SKPathDirection.Clockwise ) : void
rect SKRect
rx float
ry float
dir SKPathDirection
return void

ArcTo() public method

public ArcTo ( SKPoint point1, SKPoint point2, float radius ) : void
point1 SKPoint
point2 SKPoint
radius float
return void

ArcTo() public method

public ArcTo ( SKPoint r, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, SKPoint xy ) : void
r SKPoint
xAxisRotate float
largeArc SKPathArcSize
sweep SKPathDirection
xy SKPoint
return void

ArcTo() public method

public ArcTo ( SKRect oval, float startAngle, float sweepAngle, bool forceMoveTo ) : void
oval SKRect
startAngle float
sweepAngle float
forceMoveTo bool
return void

ArcTo() public method

public ArcTo ( float rx, float ry, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, float x, float y ) : void
rx float
ry float
xAxisRotate float
largeArc SKPathArcSize
sweep SKPathDirection
x float
y float
return void

ArcTo() public method

public ArcTo ( float x1, float y1, float x2, float y2, float radius ) : void
x1 float
y1 float
x2 float
y2 float
radius float
return void

Close() public method

public Close ( ) : void
return void

ConicTo() public method

public ConicTo ( SKPoint point0, SKPoint point1, float w ) : void
point0 SKPoint
point1 SKPoint
w float
return void

ConicTo() public method

public ConicTo ( float x0, float y0, float x1, float y1, float w ) : void
x0 float
y0 float
x1 float
y1 float
w float
return void

Contains() public method

public Contains ( float x, float y ) : bool
x float
y float
return bool

ConvertConicToQuads() public static method

public static ConvertConicToQuads ( SKPoint p0, SKPoint p1, SKPoint p2, float w, int pow2 ) : SKPoint[]
p0 SKPoint
p1 SKPoint
p2 SKPoint
w float
pow2 int
return SKPoint[]

ConvertConicToQuads() public static method

public static ConvertConicToQuads ( SKPoint p0, SKPoint p1, SKPoint p2, float w, SKPoint &pts, int pow2 ) : int
p0 SKPoint
p1 SKPoint
p2 SKPoint
w float
pts SKPoint
pow2 int
return int

CreateIterator() public method

public CreateIterator ( bool forceClose ) : Iterator
forceClose bool
return Iterator

CreateRawIterator() public method

public CreateRawIterator ( ) : RawIterator
return RawIterator

CubicTo() public method

public CubicTo ( SKPoint point0, SKPoint point1, SKPoint point2 ) : void
point0 SKPoint
point1 SKPoint
point2 SKPoint
return void

CubicTo() public method

public CubicTo ( float x0, float y0, float x1, float y1, float x2, float y2 ) : void
x0 float
y0 float
x1 float
y1 float
x2 float
y2 float
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetBounds() public method

public GetBounds ( SKRect &rect ) : bool
rect SKRect
return bool

GetPoint() public method

public GetPoint ( int index ) : SKPoint
index int
return SKPoint

GetPoints() public method

public GetPoints ( int max ) : SKPoint[]
max int
return SKPoint[]

GetPoints() public method

public GetPoints ( SKPoint points, int max ) : int
points SKPoint
max int
return int

GetTightBounds() public method

public GetTightBounds ( SKRect &result ) : bool
result SKRect
return bool

LineTo() public method

public LineTo ( SKPoint point ) : void
point SKPoint
return void

LineTo() public method

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

MoveTo() public method

public MoveTo ( SKPoint point ) : void
point SKPoint
return void

MoveTo() public method

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

Offset() public method

public Offset ( SKPoint offset ) : void
offset SKPoint
return void

Offset() public method

public Offset ( float dx, float dy ) : void
dx float
dy float
return void

Op() public method

public Op ( SKPath other, SKPathOp op ) : SKPath
other SKPath
op SKPathOp
return SKPath

Op() public method

public Op ( SKPath other, SKPathOp op, SKPath result ) : bool
other SKPath
op SKPathOp
result SKPath
return bool

ParseSvgPathData() public static method

public static ParseSvgPathData ( string svgPath ) : SKPath
svgPath string
return SKPath

QuadTo() public method

public QuadTo ( SKPoint point0, SKPoint point1 ) : void
point0 SKPoint
point1 SKPoint
return void

QuadTo() public method

public QuadTo ( float x0, float y0, float x1, float y1 ) : void
x0 float
y0 float
x1 float
y1 float
return void

RArcTo() public method

public RArcTo ( SKPoint r, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, SKPoint xy ) : void
r SKPoint
xAxisRotate float
largeArc SKPathArcSize
sweep SKPathDirection
xy SKPoint
return void

RArcTo() public method

public RArcTo ( float rx, float ry, float xAxisRotate, SKPathArcSize largeArc, SKPathDirection sweep, float x, float y ) : void
rx float
ry float
xAxisRotate float
largeArc SKPathArcSize
sweep SKPathDirection
x float
y float
return void

RConicTo() public method

public RConicTo ( SKPoint point0, SKPoint point1, float w ) : void
point0 SKPoint
point1 SKPoint
w float
return void

RConicTo() public method

public RConicTo ( float dx0, float dy0, float dx1, float dy1, float w ) : void
dx0 float
dy0 float
dx1 float
dy1 float
w float
return void

RCubicTo() public method

public RCubicTo ( SKPoint point0, SKPoint point1, SKPoint point2 ) : void
point0 SKPoint
point1 SKPoint
point2 SKPoint
return void

RCubicTo() public method

public RCubicTo ( float dx0, float dy0, float dx1, float dy1, float dx2, float dy2 ) : void
dx0 float
dy0 float
dx1 float
dy1 float
dx2 float
dy2 float
return void

RLineTo() public method

public RLineTo ( SKPoint point ) : void
point SKPoint
return void

RLineTo() public method

public RLineTo ( float dx, float dy ) : void
dx float
dy float
return void

RMoveTo() public method

public RMoveTo ( SKPoint point ) : void
point SKPoint
return void

RMoveTo() public method

public RMoveTo ( float dx, float dy ) : void
dx float
dy float
return void

RQuadTo() public method

public RQuadTo ( SKPoint point0, SKPoint point1 ) : void
point0 SKPoint
point1 SKPoint
return void

RQuadTo() public method

public RQuadTo ( float dx0, float dy0, float dx1, float dy1 ) : void
dx0 float
dy0 float
dx1 float
dy1 float
return void

Reset() public method

public Reset ( ) : void
return void

Rewind() public method

public Rewind ( ) : void
return void

SKPath() public method

public SKPath ( ) : System
return System

SKPath() public method

public SKPath ( SKPath path ) : System
path SKPath
return System

Simplify() public method

public Simplify ( ) : SKPath
return SKPath

Simplify() public method

public Simplify ( SKPath result ) : bool
result SKPath
return bool

ToSvgPathData() public method

public ToSvgPathData ( ) : string
return string

Transform() public method

public Transform ( SKMatrix matrix ) : void
matrix SKMatrix
return void

this() public method

public this ( int index ) : SKPoint
index int
return SKPoint