Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
CGShadingCreateAxialMBS(colorspace as CGColorSpaceMBS, startPoint as CGPointMBS, endPoint as CGPointMBS, func as CGFunctionMBS, extendStart as boolean, extendEnd as boolean) as CGShadingMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | CoreGraphics | MBS MacCG Plugin | 6.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Parameters:
colorspace: The color space in which color values are expressed. Quartz retains this object; upon return, you may safely release it.
startPoint: The starting point of the axis, in the shading's target coordinate space.
endPoint: The ending point of the axis, in the shading's target coordinate space.
function: A CGFunction object. This object refers to your function for creating an axial shading. Quartz retains this object; upon return, you may safely release it.
extendStart: A Boolean value that specifies whether to extend the shading beyond the starting point of the axis.
extendEnd: A Boolean value that specifies whether to extend the shading beyond the ending point of the axis.
Returns a new Quartz axial shading or nil on any error.
Discussion
An axial shading is a color blend that varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis. When you are ready to draw the shading, call the function CGContextMBS.DrawShading.
Available in Mac OS X version 10.2 and later.
The items on this page are in the following plugins: MBS MacCG Plugin.