iOS Guides | Samples

CoreGraphics.CGContext.DrawRadialGradient Method

Draws a radial gradient using the specified parameters.

Syntax

public Void DrawRadialGradient (CGGradient gradient, CGGradientDrawingOptions options, CGPoint startCenter, nfloat startRadius, CGPoint endCenter, nfloat endRadius)

Parameters

gradient
The CGGradient defining the color ramp.
startCenter
startRadius
endCenter
endRadius
options

Remarks

A radial gradient is created by linearly interpolating the center, radius and color of each circle using the start and end point for the center, start and end radius for the radius, and the color ramp inherent to the gradient to create a set of stroked circles that fill the area completely. The options specify if this interpolation continues past the start or end points as it does with linear gradients.

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0