iOS Guides | Samples

CoreGraphics.CGContext.DrawLinearGradient Method

Draws the specified gradient such that lines perpendicular to that between startPoint and endPoint will be the same color.

Syntax

public Void DrawLinearGradient (CGGradient gradient, CGGradientDrawingOptions options, CGPoint startPoint, CGPoint endPoint)

Parameters

gradient
The gradient to be drawn.
startPoint
The point anchoring the beginning of the gradient.
endPoint
The point anchoring the end of the gradient.
options
The CGGradientDrawingOptions, if any, to be applied to the gradient.

Requirements

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