ApiPath
Represents the ApiPath class.
Methods
| Method | Returns | Description |
|---|---|---|
| ArcTo | None | Draws an arc from the current point using the specified width and height radii, start angle, and sweep angle. |
| Close | None | Closes the current path. |
| CubicBezTo | None | Draws a cubic Bezier curve from the current point to the specified end point using two control points. |
| GetCommand | ApiPathCommand | null | Returns a specific path command by its index. |
| GetCommandCount | number | Returns the number of commands for the current path. |
| GetCommands | ApiPathCommand[] | Returns all commands of the current path. |
| GetFill | PathFillType | Returns the fill type of the current path. |
| GetHeight | number | Returns the height of the current path. |
| GetStroke | boolean | Returns true if the current path is stroked, otherwise false. |
| GetWidth | number | Returns the width of the current path. |
| LineTo | None | Draws a line from the current point to the specified coordinates. |
| MoveTo | None | Moves the current path to the specified coordinates. |
| QuadBezTo | None | Draws a quadratic Bezier curve from the current point to the specified end point using a control point. |
| SetFill | None | Sets the fill type to the current path. |
| SetHeight | None | Sets the height to the current path. |
| SetStroke | None | Sets whether the current path is stroked. |
| SetWidth | None | Sets the width to the current path. |