Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGMutablePathMBS class.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Add an arc of a circle to path, possibly preceded by a straight line segment.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Add an arc of a circle to path, possibly preceded by a straight line segment.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
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).

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Add an ellipse (an oval) inside rect to path.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Append a straight line segment from the current point to (x, y) in the path and move the current point to (x, y).

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Add a path to the path.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
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'.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Add rect to path.

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

CGMutablePathMBS.CloseSubpath

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Create a mutable path.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Return true if point is contained in path; false otherwise.

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 iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Move the current point to (x, y) in path and begin a new subpath.

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.


The biggest plugin in space...