iOS Guides | Samples

CoreGraphics.CGContext.SetFillColor Method

Sets the fill color to a gray level, in the range 0 (black) to 1 (white).

Syntax

public Void SetFillColor (nfloat gray, nfloat alpha)

Parameters

gray
The amount of gray, in the range 0 (black) to 1 (white).
alpha
The opacity of the color, in the range 0 (transparent) to 1 (opaque).

Requirements

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