BezierTo adds a cubic Bezier curve to the current figure of the Path. Its start point is the current point. c1x and c1y are the first control point. c2x and c2y are the second control point. endX and endY are the end point. The current point is set to the end point.