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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
If transform is not nil, then transform the rectangle by the matrix first.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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 |
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 |
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.