line_to method

line_to

Adds line to the end of the path

def line_to(self, point):
    ...
ParameterTypeDescription
pointaspose.pydrawing.PointFEnd point of the line

line_to

Adds line to the end of the path

def line_to(self, x, y):
    ...
ParameterTypeDescription
xfloatX coordinate of the end point of the line
yfloatY coordinate of the end point of the line

line_to

Adds line to the specified place of the path

def line_to(self, point, index):
    ...
ParameterTypeDescription
pointaspose.pydrawing.PointFEnd point
indexintIndex of segment in PathData

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentOutOfRangeException))Segment index is out of PathData range

line_to

Adds line to the specified place of the path

def line_to(self, x, y, index):
    ...
ParameterTypeDescription
xfloatX coordinate of the point
yfloatY coordinate of the point
indexintIndex of segment in PathData

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentOutOfRangeException))Segment index is out of PathData range

See Also