Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGContextMBS class.
CGContextMBS.AddArc(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 | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Add an arc of a circle to the context's path, possibly preceded by a straight line segment. '(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.
CGContextMBS.AddArcToPoint(x1 as Double, y1 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 | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Add an arc of a circle to the context's path, possibly preceded by a straight line segment. 'radius' is the radius of the arc. The arc is tangent to the line from the current point to '(x1, y1)', and the line from '(x1, y1)' to '(x2, y2)'.
CGContextMBS.AddCurveToPoint(cp1x as Double, cp1y as Double, cp2x as Double, cp2y as Double, x as Double, y as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.AddLines(p() as CGPointMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Currently this function is not available to RB versions before 3.5.
Note that the p parameter is an array of CGPointMBS and not just one.
Some examples using this method:
CGContextMBS.AddLineToPoint(x as Double, y as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.AddQuadCurveToPoint(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 | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.AddRect(r as CGRectMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.AddRects(r() as CGRectMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Currently this function is not available to RB versions before 3.5.
Note that the r parameter is an array of CGRectMBS and not just one.
The items on this page are in the following plugins: MBS MacCG Plugin.