跳到主要内容

ApiPath

Represents the ApiPath class.

Methods

MethodReturnsDescription
ArcToNoneDraws an arc from the current point using the specified width and height radii, start angle, and sweep angle.
CloseNoneCloses the current path.
CubicBezToNoneDraws a cubic Bezier curve from the current point to the specified end point using two control points.
GetCommandApiPathCommand | nullReturns a specific path command by its index.
GetCommandCountnumberReturns the number of commands for the current path.
GetCommandsApiPathCommand[]Returns all commands of the current path.
GetFillPathFillTypeReturns the fill type of the current path.
GetHeightnumberReturns the height of the current path.
GetStrokebooleanReturns true if the current path is stroked, otherwise false.
GetWidthnumberReturns the width of the current path.
LineToNoneDraws a line from the current point to the specified coordinates.
MoveToNoneMoves the current path to the specified coordinates.
QuadBezToNoneDraws a quadratic Bezier curve from the current point to the specified end point using a control point.
SetFillNoneSets the fill type to the current path.
SetHeightNoneSets the height to the current path.
SetStrokeNoneSets whether the current path is stroked.
SetWidthNoneSets the width to the current path.