UIKit.UIColor.ColorWithAlpha Method
Creates a new color with the specified alpha channel from a reference color.

Syntax

[Foundation.Export("colorWithAlphaComponent:")]
public virtual UIColor ColorWithAlpha (nfloat alpha)

Parameters

alpha
Alpha (transparency) value from 0.0 to 1.0f.

Returns

A copy of the color, but with a new alpha component value.

Remarks

This can be used from a background thread.

Requirements

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