CGShading.CreateAxial Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateAxial(CGColorSpace, CGPoint, CGPoint, CGFunction, Boolean, Boolean) |
Create a new axial shading. |
| CreateAxial(Single, CGColorSpace, CGPoint, CGPoint, CGFunction, Boolean, Boolean) |
Create an axial shading with the specified content headroom. |
CreateAxial(CGColorSpace, CGPoint, CGPoint, CGFunction, Boolean, Boolean)
Create a new axial shading.
public static CoreGraphics.CGShading? CreateAxial(CoreGraphics.CGColorSpace? colorspace, CoreGraphics.CGPoint start, CoreGraphics.CGPoint end, CoreGraphics.CGFunction? function, bool extendStart, bool extendEnd);
static member CreateAxial : CoreGraphics.CGColorSpace * CoreGraphics.CGPoint * CoreGraphics.CGPoint * CoreGraphics.CGFunction * bool * bool -> CoreGraphics.CGShading
Parameters
- colorspace
- CGColorSpace
The colorspace to use for the new CGShading.
- start
- CGPoint
The starting point for the axis.
- end
- CGPoint
The ending point for the axis
- function
- CGFunction
The shading function to use.
- extendStart
- Boolean
Whether the shading will extend beyond the starting point of the axis or not.
- extendEnd
- Boolean
Whether the shading will extend beyond the ending point of the axis or not.
Returns
A new CGShading if successful, null otherwise.
Applies to
CreateAxial(Single, CGColorSpace, CGPoint, CGPoint, CGFunction, Boolean, Boolean)
Create an axial shading with the specified content headroom.
public static CoreGraphics.CGShading? CreateAxial(float headroom, CoreGraphics.CGColorSpace? colorSpace, CoreGraphics.CGPoint start, CoreGraphics.CGPoint end, CoreGraphics.CGFunction? function, bool extendStart, bool extendEnd);
static member CreateAxial : single * CoreGraphics.CGColorSpace * CoreGraphics.CGPoint * CoreGraphics.CGPoint * CoreGraphics.CGFunction * bool * bool -> CoreGraphics.CGShading
Parameters
- colorSpace
- CGColorSpace
The colorspace to use for the new CGShading. This colorspace must support HDR.
- start
- CGPoint
The starting point for the axis.
- end
- CGPoint
The ending point for the axis
- function
- CGFunction
The shading function to use.
- extendStart
- Boolean
Whether the shading will extend beyond the starting point of the axis or not.
- extendEnd
- Boolean
Whether the shading will extend beyond the ending point of the axis or not.
Returns
A new CGShading if successful, null otherwise.