Platforms to show: All Mac Windows Linux Cross-Platform

**CGMutablePathMBS.AddArc(transform as CGAffineTransformMBS, x as Double, y as Double, radius as Double, startAngle as Double, endAngle as Double, clockwise as boolean)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Add an arc of a circle to path, possibly preceded by a straight line segment.

**Notes:**The arc is approximated by a sequence of cubic Bezier curves. (x, y) is the center of the arc; radius is its radius; startAngle is the angle to the first endpoint of the arc; endAngle is the angle to the second endpoint of the arc; and clockwise is true if the arc is to be drawn clockwise, false otherwise. startAngle and endAngle are measured in radians. If m is not nil, then the constructed Bezier curves representing the arc will be transformed by the matrix before they are added to path.

**CGMutablePathMBS.AddArcToPoint(transform as CGAffineTransformMBS, x as Double, y as Double, x2 as Double, y2 as Double, radius as Double)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Add an arc of a circle to path, possibly preceded by a straight line segment.

**Notes:**The arc is approximated by a sequence of cubic Bezier curves. (x, y) is the center of the arc; radius is its radius; startAngle is the angle to the first endpoint of the arc; endAngle is the angle to the second endpoint of the arc; and clockwise is true if the arc is to be drawn clockwise, false otherwise. startAngle and endAngle are measured in radians. If m is not nil, then the constructed Bezier curves representing the arc will be transformed by the matrix before they are added to path.

**CGMutablePathMBS.AddCurveToPoint(transform as CGAffineTransformMBS, cpx1 as Double, cpy1 as Double, cpx2 as Double, cpy2 as Double, x as Double, y as Double)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Append a cubic Bezier curve from the current point to (x,y) with control points (cp1x, cp1y) and (cp2x, cp2y) in path and move the current point to (x, y).

**Notes:**If transform is not nil, then transform all points by the matrix first.

**CGMutablePathMBS.AddEllipseInRect(transform as CGAffineTransformMBS, r as CGRectMBS)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Add an ellipse (an oval) inside rect to path.

**Notes:**The ellipse is approximated by a sequence of Bezier curves. The center of the ellipse is the midpoint of rect. If rect is square, then the ellipse will be circular with radius equal to one-half the width (equivalently, one-half the height) of rect. If rect is rectangular, then the major- and minor-axes will be the width and height of rect. The ellipse forms a complete subpath of path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If transform is not nil, then the constructed Bezier curves representing the ellipse will be transformed by m before they are added to path.

**CGMutablePathMBS.AddLineToPoint(transform as CGAffineTransformMBS, x as Double, y as Double)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Append a straight line segment from the current point to (x, y) in the path and move the current point to (x, y).

**Notes:**If transform is not nil, then transform (x, y) by the matrix first.

**CGMutablePathMBS.AddPath(transform as CGAffineTransformMBS, path as CGPathMBS)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Add a path to the path.

**Notes:**If m is not nil, then the points in the new path will be transformed by the matrix before they are added to path1.

**CGMutablePathMBS.AddQuadCurveToPoint(transform as CGAffineTransformMBS, cpx as Double, cpy as Double, x as Double, y as Double)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Append a quadratic curve from the current point to (x, y) with control point (cpx, cpy) in path and move the current point to (x, y'.

**Notes:**If transform is not nil, then transform all points by the matrix first.

**CGMutablePathMBS.AddRect(transform as CGAffineTransformMBS, r as CGRectMBS)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Add rect to path.

**Notes:**If transform is not nil, then transform the rectangle by the matrix first.

**CGMutablePathMBS.CloseSubpath**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Append a line from the current point to the starting point of the current subpath of path and end the subpath.

**CGMutablePathMBS.Constructor**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Create a mutable path.

**CGMutablePathMBS.ContainsPoint(transform as CGAffineTransformMBS, point as CGPointMBS, eoFill as boolean) as boolean**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Return true if point is contained in path; false otherwise.

**Notes:**A point is contained in a path if it is inside the painted region when the path is filled; if eoFill is true, then the even-odd fill rule is used to evaluate the painted region of the path, otherwise, the winding-number fill rule is used. If m is not nil, then the point is transformed by m before determining whether the path contains it.

**CGMutablePathMBS.MoveToPoint(transform as CGAffineTransformMBS, x as Double, y as Double)**

Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |

method | CoreGraphics | MBS MacCG Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |

**Function:**Move the current point to (x, y) in path and begin a new subpath.

**Notes:**If transform is not nil, then transform (x, y) by the matrix first.

The items on this page are in the following plugins: MBS MacCG Plugin.

Links

MBS Xojo Chart Plugins